Check that content is not null

This commit is contained in:
Benoit Marty 2020-06-03 09:32:20 +02:00
parent 9a592e9c7e
commit 870c4bf765

View file

@ -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
}