aboutsummaryrefslogtreecommitdiff
path: root/syncapi
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-11-22 21:38:27 +0000
committerGitHub <noreply@github.com>2022-11-22 21:38:27 +0000
commit31f56ac3f43b692a56718fd1acfcb5a46e485c57 (patch)
treedb99fd5ab4c3cf6d541592fb14bc8e81792a6362 /syncapi
parent7ad87eace3b88b3aaa88dc8a0acec9b64ffcc52c (diff)
Never filter out a user's own membership when using LL (#2887)
Diffstat (limited to 'syncapi')
-rw-r--r--syncapi/streams/stream_pdu.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/streams/stream_pdu.go b/syncapi/streams/stream_pdu.go
index 65ca8e2a..dd784557 100644
--- a/syncapi/streams/stream_pdu.go
+++ b/syncapi/streams/stream_pdu.go
@@ -588,7 +588,7 @@ func (p *PDUStreamProvider) lazyLoadMembers(
isGappedIncremental := limited && incremental
// We want this users membership event, keep it in the list
stateKey := *event.StateKey()
- if _, ok := timelineUsers[stateKey]; ok || isGappedIncremental {
+ if _, ok := timelineUsers[stateKey]; ok || isGappedIncremental || stateKey == device.UserID {
newStateEvents = append(newStateEvents, event)
if !stateFilter.IncludeRedundantMembers {
p.lazyLoadCache.StoreLazyLoadedUser(device, roomID, stateKey, event.EventID())