The idea would be to expose a new api to resolve multiple notifications.
Indeed, currently we are running a lot of sliding sync requests where we could probably run only one with all the rooms subscribed.
Sounds good to me, thanks! One small nitpick on the name is that "Result" should not be used for things that aren't Result<..., ...>; maybe Outcome would work nicely as a suffix.
Context : https://github.com/element-hq/element-x-android/issues/2910
The idea would be to expose a new api to resolve multiple notifications. Indeed, currently we are running a lot of sliding sync requests where we could probably run only one with all the rooms subscribed.
The api could looks like that :
We need to make sure the
EventId
andRoomId
are available in theNotificationItem
so we can map them back in the client.