android, desktop: expand moderated messages (#5722)

This commit is contained in:
Stanislav Dmitrenko 2025-03-07 18:16:56 +07:00 committed by GitHub
parent ad4adf66ec
commit cc2a45bdaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -640,6 +640,13 @@ fun ChatItemView(
fun DeletedItem() {
MarkedDeletedItemView(cItem, cInfo, cInfo.timedMessagesTTL, revealed, showViaProxy = showViaProxy, showTimestamp = showTimestamp)
DefaultDropdownMenu(showMenu) {
if (revealed.value) {
HideItemAction(revealed, showMenu, reveal)
} else if (!cItem.isDeletedContent) {
RevealItemAction(revealed, showMenu, reveal)
} else if (range.value != null) {
ExpandItemAction(revealed, showMenu, reveal)
}
ItemInfoAction(cInfo, cItem, showItemDetails, showMenu)
DeleteItemAction(cItem, revealed, showMenu, questionText = generalGetString(MR.strings.delete_message_cannot_be_undone_warning), deleteMessage, deleteMessages)
if (cItem.canBeDeletedForSelf) {