mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-26 12:44:38 +00:00
Add blocked check when adding 'user joined' message.
This commit is contained in:
committed by
Cody Henthorne
parent
4d23f11f6e
commit
4e35906680
@@ -207,7 +207,7 @@ object ContactDiscovery {
|
||||
if (!SignalStore.settings.isNotifyWhenContactJoinsSignal) return
|
||||
|
||||
Recipient.resolvedList(newUserIds)
|
||||
.filter { !it.isSelf && it.hasAUserSetDisplayName(context) && !hasSession(it.id) && it.hasE164 }
|
||||
.filter { !it.isSelf && it.hasAUserSetDisplayName(context) && !hasSession(it.id) && it.hasE164 && !it.isBlocked }
|
||||
.map {
|
||||
Log.i(TAG, "Inserting 'contact joined' message for ${it.id}. E164: ${it.e164}")
|
||||
val message = IncomingMessage.contactJoined(it.id, System.currentTimeMillis())
|
||||
|
||||
Reference in New Issue
Block a user