ChatActivity: fix crash, fix sticker button enabling conditions

This commit is contained in:
Alibek Omarov 2020-10-07 01:42:58 +03:00
parent 1805a99a6c
commit e13a02e219

View File

@ -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) {