forked from jmug/stoatchat
New Feature: Add server-side channel unreads.
This commit is contained in:
@@ -244,7 +244,8 @@ pub fn publish(ids: Vec<String>, notification: ClientboundNotification) {
|
||||
// Block certain notifications from reaching users that aren't meant to see them.
|
||||
match ¬ification {
|
||||
ClientboundNotification::UserRelationship { id: user_id, .. }
|
||||
| ClientboundNotification::UserSettingsUpdate { id: user_id, .. } => {
|
||||
| ClientboundNotification::UserSettingsUpdate { id: user_id, .. }
|
||||
| ClientboundNotification::ChannelAck { user: user_id, .. } => {
|
||||
if &id != user_id {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user