Skip to main content

isLastMessageByCurrentUser

function isLastMessageByCurrentUser(messages, currentUserId): boolean;

Detect Whether the last message posted by current user

Parameters

ParameterTypeDescription
messagesChatMessage[]Messages[] chat messages
currentUserIdParticipantID | undefinedstring the current user id

Returns

boolean