mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-23 19:26:17 +00:00
Do not include self in exported SMS threads.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user