mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 06:14:10 +01:00
fix klint
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
b652b1136e
commit
d377b6f136
@ -279,7 +279,7 @@ class ChatController(args: Bundle) :
|
||||
this.sharedText = args.getString(BundleKeys.KEY_SHARED_TEXT, "")
|
||||
|
||||
Log.d(TAG, " roomToken = $roomToken")
|
||||
if (roomToken.isNullOrEmpty()){
|
||||
if (roomToken.isNullOrEmpty()) {
|
||||
Log.d(TAG, " roomToken was null or empty!")
|
||||
}
|
||||
|
||||
@ -322,7 +322,10 @@ class ChatController(args: Bundle) :
|
||||
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||
override fun onNext(roomOverall: RoomOverall) {
|
||||
currentConversation = roomOverall.ocs.data
|
||||
Log.d(TAG, "getRoomInfo. token: " + currentConversation?.getToken() + " sessionId: " + currentConversation?.sessionId)
|
||||
Log.d(
|
||||
TAG, "getRoomInfo. token: " + currentConversation?.getToken() +
|
||||
" sessionId: " + currentConversation?.sessionId
|
||||
)
|
||||
loadAvatarForStatusBar()
|
||||
|
||||
setTitle()
|
||||
@ -1627,9 +1630,10 @@ class ChatController(args: Bundle) :
|
||||
|
||||
private fun joinRoomWithPassword() {
|
||||
|
||||
if (currentConversation == null
|
||||
|| TextUtils.isEmpty(currentConversation?.sessionId)
|
||||
|| currentConversation?.sessionId == "0") {
|
||||
if (currentConversation == null ||
|
||||
TextUtils.isEmpty(currentConversation?.sessionId) ||
|
||||
currentConversation?.sessionId == "0"
|
||||
) {
|
||||
var apiVersion = 1
|
||||
// FIXME Fix API checking with guests?
|
||||
if (conversationUser != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user