fix some bugs i think ?

This commit is contained in:
Henry Hiles 2026-01-06 12:08:34 -05:00
commit cb5846600b
No known key found for this signature in database
6 changed files with 43 additions and 34 deletions

View file

@ -128,9 +128,8 @@ class RoomChatController extends AsyncNotifier<ChatController> {
await room.sendTextEvent(
taggedMessage,
editEventId: relationType == RelationType.edit ? relation?.id : null,
displayPendingEvent: relationType != RelationType.edit,
inReplyTo: (relationType == RelationType.reply)
? await room.getEventById(relation!.id)
inReplyTo: (relationType == RelationType.reply && relation != null)
? await room.getEventById(relation.id)
: null,
);
}