Skip to content

Commit

Permalink
fix up android
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Oct 8, 2024
1 parent 39f6181 commit 044a992
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ class GroupWrapper {
put("consentState", consentStateToString(group.consentState()))
}
if (groupParams.lastMessage) {
put(
"lastMessage",
DecodedMessageWrapper.encode(group.decryptedMessages(limit = 1).first())
)
val lastMessage = group.decryptedMessages(limit = 1).firstOrNull()
if (lastMessage != null) {
put("lastMessage", DecodedMessageWrapper.encode(lastMessage))
}
}
}
}
Expand Down

0 comments on commit 044a992

Please sign in to comment.