From d2063cabe1d717207fac1699477668a7861a2990 Mon Sep 17 00:00:00 2001 From: megrogan Date: Fri, 10 Jan 2025 15:49:03 +0000 Subject: [PATCH] Fix --- .../local_user_index/impl/src/lifecycle/inspect_message.rs | 2 +- backend/libraries/types/src/bots.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/canisters/local_user_index/impl/src/lifecycle/inspect_message.rs b/backend/canisters/local_user_index/impl/src/lifecycle/inspect_message.rs index 3d625662a4..26edc2c28b 100644 --- a/backend/canisters/local_user_index/impl/src/lifecycle/inspect_message.rs +++ b/backend/canisters/local_user_index/impl/src/lifecycle/inspect_message.rs @@ -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, }; diff --git a/backend/libraries/types/src/bots.rs b/backend/libraries/types/src/bots.rs index a4931512ea..cb910d7c54 100644 --- a/backend/libraries/types/src/bots.rs +++ b/backend/libraries/types/src/bots.rs @@ -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; @@ -142,5 +142,5 @@ pub enum BotCommandArgValue { String(String), Number(f64), Boolean(bool), - User(UserId), + Principal(Principal), }