Skip to content

Function: mostRecentUnreadConversation() ​

ts
function mostRecentUnreadConversation(
   channels, 
   unread, 
   mentions?
): IChannel | undefined;

Defined in: notifications.ts:10

The newest conversation carrying the badge the user is about to open.

Parameters ​

ParameterType
channelsreadonly IChannel[]
unreadRecord<number, number>
mentions?Record<number, number>

Returns ​

IChannel | undefined

Released under the GNU Affero General Public License v3.0.