mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 01:45:52 +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) {
|
return when (event.type) {
|
||||||
EventType.STATE_ROOM_MEMBER -> {
|
EventType.STATE_ROOM_MEMBER -> {
|
||||||
// Call toContent(), to filter out null value
|
// Call toContent(), to filter out null value
|
||||||
event.content?.toContent() == event.resolvedPrevContent()?.toContent()
|
event.content != null
|
||||||
|
&& event.content.toContent() == event.resolvedPrevContent()?.toContent()
|
||||||
}
|
}
|
||||||
else -> false
|
else -> false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue