From 0d0906e370edff46b297d2eed32de59510a7b7a4 Mon Sep 17 00:00:00 2001 From: Dmitrii Baranov Date: Sun, 11 Aug 2024 11:11:50 +0300 Subject: [PATCH] Removed unneeded check for deleted user when executing commands --- lib/src/core/access.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/core/access.dart b/lib/src/core/access.dart index c8d3909..b799649 100644 --- a/lib/src/core/access.dart +++ b/lib/src/core/access.dart @@ -33,7 +33,7 @@ class Access { required OnFailureCallback onFailure}) async { var user = await _userDb.getSingleUserForChat(event.chatId, event.userId); - if (user == null || user.banned || user.deleted) { + if (user == null || user.banned) { return onFailure(event); }