just grab events out of get_mentions for now

This commit is contained in:
Henry Hiles 2026-09-22 09:57:10 -04:00
commit 0c660a98a7
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -296,9 +296,9 @@ class ClientController extends AsyncNotifier<int> {
} }
Future<IList<Event>> getMentions(GetMentionsRequest request) async => .new( Future<IList<Event>> getMentions(GetMentionsRequest request) async => .new(
((await _sendCommand("get_mentions", request.toJson())) as List).map( // TODO: Handle `related_events`
(event) => .fromJson(event), ((await _sendCommand("get_mentions", request.toJson()))["events"] as List)
), .map((event) => .fromJson(event)),
); );
Future<Event?> getEvent(GetEventRequest request) async { Future<Event?> getEvent(GetEventRequest request) async {