mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Deprecate MSC2716 methods and add Beeper batch send methods
This commit is contained in:
parent
d0e7cf077a
commit
c710d4aa8f
7 changed files with 29 additions and 13 deletions
|
|
@ -235,17 +235,7 @@ func (as *AppService) handleEvents(ctx context.Context, evts []*event.Event, def
|
|||
}
|
||||
|
||||
if evt.Type.IsState() {
|
||||
// TODO remove this check after making sure the log doesn't happen
|
||||
historical, ok := evt.Content.Raw["org.matrix.msc2716.historical"].(bool)
|
||||
if ok && historical {
|
||||
log.Warn().
|
||||
Str("event_id", evt.ID.String()).
|
||||
Str("event_type", evt.Type.Type).
|
||||
Str("state_key", evt.GetStateKey()).
|
||||
Msg("Received historical state event")
|
||||
} else {
|
||||
mautrix.UpdateStateStore(as.StateStore, evt)
|
||||
}
|
||||
mautrix.UpdateStateStore(as.StateStore, evt)
|
||||
}
|
||||
var ch chan *event.Event
|
||||
if evt.Type.Class == event.ToDeviceEventType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue