Skip to content

Commit

Permalink
fix: note to self messages from other devices should be outgoing
Browse files Browse the repository at this point in the history
  • Loading branch information
yougotwill committed May 1, 2024
1 parent 4eafe8c commit 74986ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/receiver/dataMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ export async function handleSwarmDataMessage({
}

let msgModel =
isSyncedMessage || (envelope.senderIdentity && isUsFromCache(envelope.senderIdentity))
isSyncedMessage ||
(envelope.senderIdentity && isUsFromCache(envelope.senderIdentity)) ||
(envelope.source && isUsFromCache(envelope.source))
? createSwarmMessageSentFromUs({
conversationId: convoIdToAddTheMessageTo,
messageHash,
Expand Down

0 comments on commit 74986ec

Please sign in to comment.