Skip to main content

block_user

Function block_user 

Source
pub async fn block_user(npub: String, handler: &dyn ProfileSyncHandler) -> bool
Expand description

Block a user by npub. DM events from blocked users are dropped after decryption. Group messages are stored but filtered in the UI.

Returns false if trying to block yourself or if the profile can’t be found.