kopia lustrzana https://github.com/ryukoposting/Signal-Android
Do not include self in exported SMS threads.
rodzic
a8946961d5
commit
afb2b1a1a2
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue