Skip to content

Commit

Permalink
Allow to be used in any chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Kozarin committed Oct 21, 2023
1 parent 9b57e61 commit aa921d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions migrations/8_add-dicks-index-chat-id.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX IF NOT EXISTS dicks_idx_chat_id ON Dicks(chat_id);
7 changes: 0 additions & 7 deletions src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ pub mod checks {
if msg.chat.is_private() || msg.chat.is_channel() {
return false
}

// TODO: delete before release (alongside with the ending of the error message)
let allowed_chats = [-1001486665073, -1001631811756, -1001100294568, -1001947584857, -1001347968299];
if !allowed_chats.contains(&msg.chat.id.0) {
return false
}

true
}

Expand Down

0 comments on commit aa921d3

Please sign in to comment.