Reaction support, currently readonly

This commit is contained in:
Henry Hiles 2026-04-08 15:47:53 -04:00
commit 5f5ad911c2
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 88 additions and 3 deletions

View file

@ -77,6 +77,7 @@ class RoomChatController extends AsyncNotifier<InMemoryChatController> {
ref.onDispose(
ref.listen(NewEventsController.provider(roomId), (_, next) async {
for (final event in next) {
// TODO: Handle new reactions
if (event.type == "m.room.redaction") {
final controller = await future;
final message = controller.messages.firstWhereOrNull(