NotificationEventsManager

Functions

Link copied to clipboard
abstract suspend 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
abstract suspend fun observeRegularNotificationsChecking(): Flow<Unit>
Link copied to clipboard
abstract suspend 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
abstract suspend 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
abstract suspend 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
abstract suspend fun scheduleEditMessageNotification(message: Message, messageContent: MessageContent.MultipartEdited)

abstract suspend 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
abstract suspend 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

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