Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
megrogan committed Jan 10, 2025
1 parent f580f52 commit d2063ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn accept_if_valid(state: &RuntimeState) {
| "join_community"
| "join_group"
| "report_message_v2" => state.is_caller_openchat_user(),
"register_user" | "execute_bot_command" => true,
"register_user" | "execute_bot_action" => true,
_ => false,
};

Expand Down
4 changes: 2 additions & 2 deletions backend/libraries/types/src/bots.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{CommunityPermission, GroupPermission, MessageContentInitial, MessageId, MessagePermission, UserId};
use candid::CandidType;
use candid::{CandidType, Principal};
use serde::{Deserialize, Serialize};
use std::collections::HashSet;
use ts_export::ts_export;
Expand Down Expand Up @@ -142,5 +142,5 @@ pub enum BotCommandArgValue {
String(String),
Number(f64),
Boolean(bool),
User(UserId),
Principal(Principal),
}

0 comments on commit d2063ca

Please sign in to comment.