Make message handling more synchronous and fill history on portal create
This commit is contained in:
@ -142,6 +142,11 @@ func (ext *ExtendedConn) handleMessageChatUpdate(message []byte) {
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
go chatUpdateHandler.HandleChatUpdate(event)
|
||||
|
||||
if ext.shouldCallSynchronously(chatUpdateHandler) {
|
||||
chatUpdateHandler.HandleChatUpdate(event)
|
||||
} else {
|
||||
go chatUpdateHandler.HandleChatUpdate(event)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user