Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,10 @@ class ReceivedMessageHandler @Inject constructor(
runThreadUpdate = runThreadUpdate
) ?: return null

// If we have previously "hidden" the sender, we should flip the flag back to visible
if (senderAddress is Address.Standard && senderAddress.address != userPublicKey) {
// If we have previously "hidden" the sender, we should flip the flag back to visible,
// and this should only be done only for 1:1 messages
if (senderAddress is Address.Standard && senderAddress.address != userPublicKey
&& context.threadAddress is Address.Standard) {
val existingContact =
configFactory.withUserConfigs { it.contacts.get(senderAddress.accountId.hexString) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,11 @@ class VisibleMessageHandler @Inject constructor(
runThreadUpdate = runThreadUpdate
) ?: return null

// If we have previously "hidden" the sender, we should flip the flag back to visible
if (senderAddress is Address.Standard && senderAddress.address != ctx.currentUserPublicKey) {
// If we have previously "hidden" the sender, we should flip the flag back to visible,
// and this should only be done only for 1:1 messages
if (senderAddress is Address.Standard &&
senderAddress.address != ctx.currentUserPublicKey &&
threadAddress is Address.Standard) {
val existingContact =
configFactory.withUserConfigs { it.contacts.get(senderAddress.accountId.hexString) }

Expand Down