Skip to content

Commit

Permalink
sync: don't process old events
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Jul 12, 2024
1 parent 47cc990 commit 914bced
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/meetbot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func main() {
meetbot := meetbot.NewMeetbot(ctx, client, logger, db, config)

syncer := client.Syncer.(*mautrix.DefaultSyncer)
client.Syncer.(mautrix.ExtensibleSyncer).OnSync(client.DontProcessOldEvents)
syncer.OnEventType(event.StateMember, func(ctx context.Context, evt *event.Event) {
if evt.StateKey == nil || *evt.StateKey != config.Username.String() {
return
Expand Down

0 comments on commit 914bced

Please sign in to comment.