ui: don't show context menu on non-sent yet live message (#3754)

* android, desktop: don't show context menu on non-sent yet live message

* ios: don't show context menu on non-sent yet live message

---------

Co-authored-by: Avently <avently@local>
This commit is contained in:
Stanislav DmitrenkoandAvently authored and GitHub committed 2024-01-25 17:48:40 +00:00
1 parent 3e0b863b64
commit 430dc5bd2e
2 files changed
+5 -2

No files matched your search

@@ -177,7 +177,8 @@ fun ChatItemView(
fun MsgContentItemDropdownMenu() {
val saveFileLauncher = rememberSaveFileLauncher(ciFile = cItem.file)
when {
cItem.content.msgContent != null -> {
// cItem.id check is a special case for live message chat item which has negative ID while not sent yet
cItem.content.msgContent != null && cItem.id >= 0 -> {
DefaultDropdownMenu(showMenu) {
if (cInfo.featureEnabled(ChatFeature.Reactions) && cItem.allowAddReaction) {
MsgReactionsMenu()