Always LL ourselves if we're in a room to simplify clients (#3916)

Should fix https://github.com/vector-im/riot-web/issues/7209
This commit is contained in:
Matthew Hodgson 2018-09-20 21:21:54 +01:00 committed by GitHub
parent 23b53b4ef8
commit a2ddaa90f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

1
changelog.d/3916.feature Normal file
View File

@ -0,0 +1 @@
Always LL ourselves if we're in a room

View File

@ -713,6 +713,10 @@ class SyncHandler(object):
)
]
# always make sure we LL ourselves so we know we're in the room
# (if we are), to fix https://github.com/vector-im/riot-web/issues/7209
types.append((EventTypes.Member, sync_config.user.to_string()))
# only apply the filtering to room members
filtered_types = [EventTypes.Member]