Skip to content

Commit

Permalink
fix: include user for pinned system messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomatree committed Jul 30, 2024
1 parent 0a80897 commit b45ae2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/core/database/src/models/messages/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,10 @@ impl Message {
users.push(id.clone());
}
v0::SystemMessage::Text { .. } => {}
v0::SystemMessage::MessagePinned { .. } => {},
v0::SystemMessage::MessageUnpinned { .. } => {},
v0::SystemMessage::MessagePinned { by, .. }
| v0::SystemMessage::MessageUnpinned { by, .. } => {
users.push(by.clone())
}
}
}
users
Expand Down

0 comments on commit b45ae2c

Please sign in to comment.