mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Switch bridge event processor to handle events in order
This commit is contained in:
parent
a9ec53efa9
commit
7eec0bd4d3
2 changed files with 2 additions and 2 deletions
|
|
@ -318,7 +318,7 @@ func (br *Bridge) init() {
|
|||
|
||||
br.Log.Debugln("Initializing Matrix event processor")
|
||||
br.EventProcessor = appservice.NewEventProcessor(br.AS)
|
||||
br.EventProcessor.ExecMode = appservice.AsyncLoop
|
||||
br.EventProcessor.ExecMode = appservice.Sync
|
||||
br.Log.Debugln("Initializing Matrix event handler")
|
||||
br.MatrixHandler = NewMatrixHandler(br)
|
||||
|
||||
|
|
|
|||
|
|
@ -430,7 +430,7 @@ func (mx *MatrixHandler) HandleMessage(evt *event.Event) {
|
|||
content.Body = strings.TrimLeft(content.Body[len(commandPrefix):], " ")
|
||||
}
|
||||
if hasCommandPrefix || evt.RoomID == user.GetManagementRoomID() {
|
||||
mx.bridge.CommandProcessor.Handle(evt.RoomID, evt.ID, user, content.Body, content.GetReplyTo())
|
||||
go mx.bridge.CommandProcessor.Handle(evt.RoomID, evt.ID, user, content.Body, content.GetReplyTo())
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue