mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 13:05:31 +03:00
update description for open and group conversations in the chatActivity
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
91726261d1
commit
f0670f9f15
1 changed files with 15 additions and 2 deletions
|
@ -182,6 +182,7 @@ import com.nextcloud.talk.ui.recyclerview.MessageSwipeCallback
|
|||
import com.nextcloud.talk.utils.ApiUtils
|
||||
import com.nextcloud.talk.utils.AudioUtils
|
||||
import com.nextcloud.talk.utils.CapabilitiesUtil
|
||||
import com.nextcloud.talk.utils.CharPolicy
|
||||
import com.nextcloud.talk.utils.ContactUtils
|
||||
import com.nextcloud.talk.utils.ConversationUtils
|
||||
import com.nextcloud.talk.utils.DateConstants
|
||||
|
@ -190,7 +191,6 @@ import com.nextcloud.talk.utils.DisplayUtils
|
|||
import com.nextcloud.talk.utils.FileUtils
|
||||
import com.nextcloud.talk.utils.FileViewerUtils
|
||||
import com.nextcloud.talk.utils.ImageEmojiEditText
|
||||
import com.nextcloud.talk.utils.CharPolicy
|
||||
import com.nextcloud.talk.utils.Mimetype
|
||||
import com.nextcloud.talk.utils.NotificationUtils
|
||||
import com.nextcloud.talk.utils.ParticipantPermissions
|
||||
|
@ -3493,7 +3493,20 @@ class ChatActivity :
|
|||
statusMessageView.visibility = View.GONE
|
||||
}
|
||||
} else {
|
||||
statusMessageView.visibility = View.GONE
|
||||
var descriptionMessage = ""
|
||||
if (currentConversation?.type == ConversationType.ROOM_GROUP_CALL ||
|
||||
currentConversation?.type == ConversationType.ROOM_PUBLIC_CALL
|
||||
) {
|
||||
descriptionMessage += currentConversation?.description
|
||||
|
||||
if (descriptionMessage.isNotEmpty()) {
|
||||
viewThemeUtils.platform.colorTextView(statusMessageView, ColorRole.ON_SURFACE)
|
||||
statusMessageView.text = descriptionMessage
|
||||
statusMessageView.visibility = View.VISIBLE
|
||||
} else {
|
||||
statusMessageView.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue