Skip to content

Commit 55fcc4d

Browse files
authored
SES-4519 : Android: Blocking a user hides their community messages (shouldn’t)(#1495)
1 parent b1d23de commit 55fcc4d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/java/org/session/libsession/messaging/sending_receiving/MessageReceiver.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ object MessageReceiver {
165165
CallMessage.fromProto(proto) ?:
166166
GroupUpdated.fromProto(proto) ?:
167167
VisibleMessage.fromProto(proto) ?: throw Error.UnknownMessage
168-
// Don't process the envelope any further if the sender is blocked
169-
if (isBlocked(sender!!) && message.shouldDiscardIfBlocked()) {
168+
169+
// Don't process the envelope any further if the sender is blocked (still visible in community chats)
170+
if (!isOpenGroupMessage && isBlocked(sender!!) && message.shouldDiscardIfBlocked()) {
170171
throw Error.SenderBlocked
171172
}
172173
val isUserBlindedSender = sender == openGroupPublicKey?.let {

0 commit comments

Comments
 (0)