ChatActivity: fix crash, fix sticker button enabling conditions
This commit is contained in:
parent
1805a99a6c
commit
e13a02e219
@ -385,9 +385,9 @@ class ChatActivity: BottomSheetActivity(),
|
||||
|
||||
enableSendButton()
|
||||
enableButton(attachmentButton, notHaveMedia, notHaveMedia)
|
||||
enableButton(stickerButton, haveStickers, haveStickers)
|
||||
enableButton(stickerButton, haveStickers && notHaveMedia, haveStickers && notHaveMedia)
|
||||
|
||||
if(!it.isNotEmpty()) {
|
||||
if(!notHaveMedia) {
|
||||
val media = it[0]
|
||||
|
||||
when(media.type) {
|
||||
|
Loading…
Reference in New Issue
Block a user