cleanup logic in event renderer
This commit is contained in:
parent
3875c3a14a
commit
9ffad93469
1 changed files with 1 additions and 5 deletions
|
|
@ -56,11 +56,7 @@ class const EventRenderer(
|
|||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue