just grab events out of get_mentions for now
This commit is contained in:
parent
09534a6775
commit
0c660a98a7
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue