fix double watch in composer
This commit is contained in:
parent
0a3ec830a3
commit
7f71adab4c
1 changed files with 1 additions and 5 deletions
|
|
@ -48,11 +48,7 @@ class const Composer(
|
|||
|
||||
final edited = event.lastEditRowId == 0
|
||||
? null
|
||||
: ref.watch(
|
||||
RoomsController.provider.select(
|
||||
(value) => value[roomId]?.events[event.lastEditRowId],
|
||||
),
|
||||
);
|
||||
: rooms[roomId]?.events[event.lastEditRowId];
|
||||
|
||||
return edited == null
|
||||
? event
|
||||
|
|
|
|||
Loading…
Reference in a new issue