mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix sms export crash with missing sms thread recipient.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user