Reaction support, currently readonly
This commit is contained in:
parent
624127f3a8
commit
5f5ad911c2
3 changed files with 88 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue