create empty client, add function of collecting user unread messages on channels
This commit is contained in:
@@ -106,6 +106,9 @@ func WsSendEventMessageToPermittedChannelUsersCloseIfTimeout(excluded uuid.UUID,
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
if target.WsConn == nil {
|
||||
target.IncrementUnreadMessagesWithCap(channel.Id)
|
||||
}
|
||||
WsSendMessageCloseIfTimeout(target, message)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user