mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-05 14:26:48 +01:00
Check that content is not null
This commit is contained in:
parent
9a592e9c7e
commit
870c4bf765
@ -29,7 +29,8 @@ internal object IsUselessResolver {
|
||||
return when (event.type) {
|
||||
EventType.STATE_ROOM_MEMBER -> {
|
||||
// Call toContent(), to filter out null value
|
||||
event.content?.toContent() == event.resolvedPrevContent()?.toContent()
|
||||
event.content != null
|
||||
&& event.content.toContent() == event.resolvedPrevContent()?.toContent()
|
||||
}
|
||||
else -> false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user