Skip to content

Commit d9b4896

Browse files
committed
fix lint issue
1 parent e2db1c8 commit d9b4896

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

library/src/main/java/org/xmtp/android/library/Conversation.kt

+1-5
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,7 @@ sealed class Conversation {
291291
is V1 -> conversationV1.decrypt(envelope)
292292
is V2 -> conversationV2.decrypt(envelope)
293293
is Group -> {
294-
if (message == null) {
295-
throw XMTPException("Groups require message be passed")
296-
} else {
297-
group.decrypt(message)
298-
}
294+
message?.decrypt() ?: throw XMTPException("Groups require message be passed")
299295
}
300296
}
301297
}

0 commit comments

Comments
 (0)