chore: Follow up jump to unread message

This commit is contained in:
Krille 2023-03-25 15:23:14 +01:00
commit 14c2bf0508
4 changed files with 60 additions and 37 deletions

View file

@ -139,8 +139,6 @@ class ChatView extends StatelessWidget {
@override
Widget build(BuildContext context) {
controller.readMarkerEventId ??= controller.room.fullyRead;
if (controller.room.membership == Membership.invite) {
showFutureLoadingDialog(
context: context,
@ -167,7 +165,7 @@ class ChatView extends StatelessWidget {
stream: controller.room.onUpdate.stream
.rateLimit(const Duration(seconds: 1)),
builder: (context, snapshot) => FutureBuilder(
future: controller.getTimeline(),
future: controller.loadTimelineFuture,
builder: (BuildContext context, snapshot) {
return Scaffold(
appBar: AppBar(