Add MSC4391 support

Fixes #133
This commit is contained in:
Henry Hiles 2026-11-03 13:12:58 -05:00
commit 3fc33a5ac9
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -173,9 +173,13 @@ extension BuildEventOptions on Event {
),
),
if (content is MessageContent &&
content is! LocationMessageContent &&
sender == userId)
if (sender == userId &&
switch (content) {
LocationMessageContent() ||
TextMessageContent(botCommand: _?) => false,
MessageContent() => true,
_ => false,
})
PopupMenuItem(
onTap: () => onRelation(rowId, .edit),
child: const ListTile(leading: Icon(Icons.edit), title: Text("Edit")),