diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-11-21 06:55:09 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-11-21 07:07:00 +0100 |
commit | bf5f209d2d237301c65cc0973f1707b9386f3110 (patch) | |
tree | 17eadba44dd3c8950acb22169b66b3c10286984c /autotests/CMakeLists.txt | |
parent | 52e640bce5a8931330fa6d653212e524e7baa2eb (diff) | |
download | libquotient-bf5f209d2d237301c65cc0973f1707b9386f3110.tar.gz libquotient-bf5f209d2d237301c65cc0973f1707b9386f3110.zip |
Room: isEventNotable, notificationFor, checkForNotifications
Room::isEventNotable has been moved out from Room::Private and made
compliant with MSC2654.
The concept of Room::checkForNotifications is taken from Quaternion
where a method with the same name has been in QuaternionRoom for a long
time - however, actual body is a stub for now, always returning
{ Notification::None } (Quaternion's implementation is too crude to be
taken to the library). Now we really need a pushrules processor to fill
this method with something reasonably good. Internally the library now
calls checkForNotifications() on every event added to the timeline,
filling up the events-to-notifications map because it is anticipated
that calculation of notifications can be rather resource-intensive and
should only be done once for a given event.
Finally, Room::notificationsFor is an accessor into the mentioned map,
standing next to isEventNotable (but unlike isEventNotable, it's not
virtual; checkForNotifications is).
Diffstat (limited to 'autotests/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions