From 099fe6f477dacc7179d1cef12b9b2a1ce1ee9bc2 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sat, 25 Jan 2020 20:57:17 +0300 Subject: [PATCH] Rename Chat.set_blocking() into set_blocked() --- src/chat.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index 8396ebd6c..eec4be5c0 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -114,7 +114,7 @@ impl ChatId { Ok(()) } - pub fn set_blocking(self, context: &Context, new_blocking: Blocked) -> bool { + pub fn set_blocked(self, context: &Context, new_blocked: Blocked) -> bool { if self.is_special() { warn!(context, "ignoring setting of Block-status for {}", self); return false; @@ -123,13 +123,13 @@ impl ChatId { context, &context.sql, "UPDATE chats SET blocked=? WHERE id=?;", - params![new_blocking, self], + params![new_blocked, self], ) .is_ok() } pub fn unblock(self, context: &Context) { - self.set_blocking(context, Blocked::Not); + self.set_blocked(context, Blocked::Not); } /// Archives or unarchives a chat.