kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix sms export crash with missing sms thread recipient.
rodzic
b324db53d3
commit
f0e94ebbad
|
@ -180,9 +180,9 @@ class SignalSmsExportReader(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun readExportableSmsMessageFromRecord(record: MessageRecord, exportState: MessageExportState): ExportableMessage {
|
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)
|
readExportableMmsMessageFromRecord(record, exportState)
|
||||||
} else {
|
} else {
|
||||||
ExportableMessage.Sms(
|
ExportableMessage.Sms(
|
||||||
|
|
Ładowanie…
Reference in New Issue