Fix membership event visibility condition.

Change-Id: I1a7ad10f845356c9056bb3f6842935a393e75e23
This commit is contained in:
Onuray Sahin 2020-12-30 12:08:27 +03:00 committed by SpiritCroc
parent 7c1361a223
commit 60b92b7d32

View file

@ -57,7 +57,7 @@ class TimelineSettingsFactory @Inject constructor(
return map {
EventTypeFilter(
eventType = it,
stateKey = if (it == EventType.STATE_ROOM_MEMBER && userPreferencesProvider.shouldShowRoomMemberStateEvents()) session.myUserId else null
stateKey = if (it == EventType.STATE_ROOM_MEMBER && !userPreferencesProvider.shouldShowRoomMemberStateEvents()) session.myUserId else null
)
}
}