mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-26 03:12:15 +00:00
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:
committed by
GitHub
parent
3e0b863b64
commit
430dc5bd2e
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user