only allow editing text messages

This commit is contained in:
Henry Hiles 2026-01-06 11:23:31 -05:00
commit a429ef9b25
No known key found for this signature in database

View file

@ -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;