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
|
final edited = event.lastEditRowId == 0
|
||||||
? null
|
? null
|
||||||
: ref.watch(
|
: rooms[roomId]?.events[event.lastEditRowId];
|
||||||
RoomsController.provider.select(
|
|
||||||
(value) => value[roomId]?.events[event.lastEditRowId],
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
edited == null
|
edited == null
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue