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) {
|
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 New Issue