~edwargix/tallyard

48cb6f21ee8b4b343a3697a776b351056b7b4a91 — David Florness 3 years ago 7b58ebf
Don't lazy load member events

This seems to be causing us to miss important membership events that are needed
to accurately display the rooms list.
1 files changed, 0 insertions(+), 2 deletions(-)

M cmd/tallyard/main.go
M cmd/tallyard/main.go => cmd/tallyard/main.go +0 -2
@@ 174,7 174,6 @@ var electionFilter = &mautrix.Filter{
			NotTypes: []event.Type{event.NewEventType("*")},
		},
		State: mautrix.FilterPart{
			LazyLoadMembers: true,
			Types: []event.Type{
				event.StateCreate,
				event.StateEncryption,


@@ 183,7 182,6 @@ var electionFilter = &mautrix.Filter{
			},
		},
		Timeline: mautrix.FilterPart{
			LazyLoadMembers: true,
			// TODO figure out how to have no limit; -1 is giving me 500s
			Limit: 500,
			Types: []event.Type{