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