only allow editing text messages
This commit is contained in:
parent
f9f4a4b48e
commit
a429ef9b25
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ class RoomChat extends HookConsumerWidget {
|
|||
),
|
||||
),
|
||||
// Should check if is state event (has state_key), if so, don't show edit option
|
||||
if (message.authorId == room.roomData.client.userID)
|
||||
if (message is TextMessage &&
|
||||
message.authorId == room.roomData.client.userID)
|
||||
PopupMenuItem(
|
||||
onTap: () {
|
||||
replyToMessage.value = message;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue