mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-20 02:59:26 +01:00
fix: Dont loose selected events
This commit is contained in:
parent
f4425771f8
commit
b65f792817
@ -297,17 +297,17 @@ class ChatView extends StatelessWidget {
|
|||||||
eventId),
|
eventId),
|
||||||
longPressSelect: controller
|
longPressSelect: controller
|
||||||
.selectedEvents.isEmpty,
|
.selectedEvents.isEmpty,
|
||||||
selected: controller
|
selected: controller.selectedEvents.any((e) =>
|
||||||
.selectedEvents
|
e.eventId ==
|
||||||
.contains(controller
|
controller
|
||||||
.filteredEvents[i - 1]),
|
.filteredEvents[i - 1]
|
||||||
|
.eventId),
|
||||||
timeline: controller.timeline,
|
timeline: controller.timeline,
|
||||||
nextEvent: i <
|
nextEvent:
|
||||||
controller
|
i < controller.filteredEvents.length
|
||||||
.filteredEvents
|
? controller
|
||||||
.length
|
.filteredEvents[i]
|
||||||
? controller.filteredEvents[i]
|
: null),
|
||||||
: null),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user