NotificationEventsManagerImpl

Publishes regular notification checks and ephemeral notifications within one user session.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun observeEphemeralNotifications(): Flow<LocalNotification>

Ideally we should have logic that allows to mark messages as notified, but this will act for cases when we need to notify the user on information we have not persisted or that is not available anymore.

Link copied to clipboard
open suspend override fun observeRegularNotificationsChecking(): Flow<Unit>
Link copied to clipboard
open suspend override fun scheduleConversationSeenNotification(conversationId: ConversationId)

Schedule the notification that informs that some conversation been seen by self-user on another device. (means that notifications about that conversation can be hidden)

Link copied to clipboard
open suspend override fun scheduleDeleteConversationNotification(ephemeralConversationNotification: EphemeralConversationNotification)

Schedule the notification that some conversation was deleted (if the notification about that conversation is displayed it should be hidden)

Link copied to clipboard
open suspend override fun scheduleDeleteMessageNotification(message: Message)

Schedule the notification that some message was deleted (if the notification about that message is displayed it should be hidden)

Link copied to clipboard
open suspend override fun scheduleEditMessageNotification(message: Message, messageContent: MessageContent.MultipartEdited)

open suspend override fun scheduleEditMessageNotification(message: Message, messageContent: MessageContent.TextEdited)

Schedule the notification that some message was edited (if the notification about that message is displayed it should be edited)

Link copied to clipboard
open suspend override fun scheduleMeetingNotification(notification: LocalNotification.Meeting)

Schedule an ephemeral meeting notification for active observers in this user session. The notification is not persisted or replayed to future observers.

Link copied to clipboard
open suspend override fun scheduleRegularNotificationChecking()

Schedule re-checking of the regular notifications - notifications that are persisted and can be got by the DB-query.