inline the mention fetch

This commit is contained in:
Henry Hiles 2026-09-22 10:37:49 -04:00
commit 386b3ad1cf
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -15,7 +15,7 @@ class NotificationsController([final NotificationsRequest? request])
final (unreadType, roomId) = request ?? (null, null);
final mentions = await client.getMentions(
return await client.getMentions(
.new(
maxTimestamp: .now(),
unreadType: unreadType ?? .highlight,
@ -23,8 +23,6 @@ class NotificationsController([final NotificationsRequest? request])
roomId: roomId,
),
);
return mentions;
}
Future<void> loadOlder() async {