Do not include self in exported SMS threads.

main
Cody Henthorne 2022-11-16 14:18:57 -05:00
rodzic a8946961d5
commit afb2b1a1a2
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -132,10 +132,12 @@ class SignalSmsExportReader(
}
private fun readExportableMmsMessageFromRecord(record: MessageRecord, exportState: MessageExportState): ExportableMessage {
val self = Recipient.self()
val threadRecipient: Recipient? = SignalDatabase.threads.getRecipientForThreadId(record.threadId)
val addresses: Set<String> = if (threadRecipient?.isMmsGroup == true) {
Recipient
.resolvedList(threadRecipient.participantIds)
.filter { it != self }
.map { r -> r.smsExportAddress() }
.toSet()
} else if (threadRecipient != null) {