mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
Check that content is not null
This commit is contained in:
parent
9a592e9c7e
commit
870c4bf765
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue