mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-22 21:58:53 +01:00
Fixed crash when mapping recipient ids
This commit is contained in:
@@ -24,6 +24,7 @@ class CursorToConversation @Inject constructor() : Mapper<Cursor, Conversation>
|
|||||||
id = from.getLong(ID)
|
id = from.getLong(ID)
|
||||||
recipients.addAll(from.getString(RECIPIENT_IDS)
|
recipients.addAll(from.getString(RECIPIENT_IDS)
|
||||||
.split(" ")
|
.split(" ")
|
||||||
|
.filter { it.isNotBlank() }
|
||||||
.map { recipientId -> recipientId.toLong() }
|
.map { recipientId -> recipientId.toLong() }
|
||||||
.map { recipientId -> Recipient().apply { id = recipientId } })
|
.map { recipientId -> Recipient().apply { id = recipientId } })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user