Fixed text message sending

This commit is contained in:
WolverinDEV
2020-01-30 10:05:01 +01:00
parent 619e560152
commit 9a030bedf6
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -543,7 +543,7 @@ command_result ConnectedClient::handleCommandSendTextMessage(Command &cmd) {
channel_tree_read_lock.lock();
}
ACTION_REQUIRES_PERMISSION(permission::b_client_channel_textmessage_send, 1, channel_id);
if(!permission::v2::permission_granted(1, this->calculate_permission(permission::b_client_channel_textmessage_send, channel_id), false)) \
return command_result{permission::b_client_channel_textmessage_send};
bool conversation_private = channel->properties()[property::CHANNEL_FLAG_CONVERSATION_PRIVATE].as<bool>();