Skip to content

Commit

Permalink
chore: Check pinned message prior to resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Nov 15, 2023
1 parent 886c876 commit 0f3d786
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions extensions/warp-ipfs/src/store/conversation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,12 @@ impl ConversationDocument {
continue
}
}

if option.pinned() && !document.pinned {
continue;
}

if let Ok(message) = document.resolve(&ipfs, &did, keystore.as_ref()).await {
if option.pinned() && !message.pinned() {
continue;
}
let should_yield = if let Some(keyword) = option.keyword() {
message
.lines()
Expand Down

0 comments on commit 0f3d786

Please sign in to comment.