Fix sms export crash with missing sms thread recipient.
This commit is contained in:
parent
b324db53d3
commit
f0e94ebbad
1 changed files with 2 additions and 2 deletions
|
@ -180,9 +180,9 @@ class SignalSmsExportReader(
|
|||
}
|
||||
|
||||
private fun readExportableSmsMessageFromRecord(record: MessageRecord, exportState: MessageExportState): ExportableMessage {
|
||||
val threadRecipient = SignalDatabase.threads.getRecipientForThreadId(record.threadId)!!
|
||||
val threadRecipient = SignalDatabase.threads.getRecipientForThreadId(record.threadId)
|
||||
|
||||
return if (threadRecipient.isMmsGroup) {
|
||||
return if (threadRecipient?.isMmsGroup == true) {
|
||||
readExportableMmsMessageFromRecord(record, exportState)
|
||||
} else {
|
||||
ExportableMessage.Sms(
|
||||
|
|
Loading…
Add table
Reference in a new issue