NotificationEventsManager

Functions

Link copied to clipboard
abstract suspend fun observeEphemeralNotifications(): <Error class: unknown class><<Error class: unknown class>>

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(): <Error class: unknown class><Unit>
Link copied to clipboard
abstract suspend fun scheduleConversationSeenNotification(conversationId: <Error class: unknown class>)

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: <Error class: unknown class>)

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: <Error class: unknown class>, messageContent: <Error class: unknown class>)

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

Link copied to clipboard

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