mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 10:25:11 +00:00
chore: Follow up open event from search
This commit is contained in:
parent
d266137592
commit
fe4e2b9418
1 changed files with 5 additions and 3 deletions
|
@ -68,7 +68,7 @@ class ChatPage extends StatelessWidget {
|
|||
}
|
||||
|
||||
return ChatPageWithRoom(
|
||||
key: Key('chat_page_$roomId'),
|
||||
key: Key('chat_page_${roomId}_$eventId'),
|
||||
room: room,
|
||||
shareText: shareText,
|
||||
eventId: eventId,
|
||||
|
@ -278,10 +278,12 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
}
|
||||
|
||||
void _tryLoadTimeline() async {
|
||||
readMarkerEventId = widget.eventId;
|
||||
loadTimelineFuture = _getTimeline(eventContextId: readMarkerEventId);
|
||||
final initialEventId = widget.eventId;
|
||||
loadTimelineFuture = _getTimeline();
|
||||
try {
|
||||
await loadTimelineFuture;
|
||||
if (initialEventId != null) scrollToEventId(initialEventId);
|
||||
|
||||
final fullyRead = room.fullyRead;
|
||||
if (fullyRead.isEmpty) {
|
||||
setReadMarker();
|
||||
|
|
Loading…
Reference in a new issue