mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-18 09:59:35 +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),
|
||||
longPressSelect: controller
|
||||
.selectedEvents.isEmpty,
|
||||
selected: controller
|
||||
.selectedEvents
|
||||
.contains(controller
|
||||
.filteredEvents[i - 1]),
|
||||
selected: controller.selectedEvents.any((e) =>
|
||||
e.eventId ==
|
||||
controller
|
||||
.filteredEvents[i - 1]
|
||||
.eventId),
|
||||
timeline: controller.timeline,
|
||||
nextEvent: i <
|
||||
controller
|
||||
.filteredEvents
|
||||
.length
|
||||
? controller.filteredEvents[i]
|
||||
: null),
|
||||
nextEvent:
|
||||
i < controller.filteredEvents.length
|
||||
? controller
|
||||
.filteredEvents[i]
|
||||
: null),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user