diff --git a/app/js/controllers.js b/app/js/controllers.js index 77c3f5fc..c3bba611 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -2593,6 +2593,13 @@ angular.module('myApp.controllers', ['myApp.i18n']) }); }; + $scope.sendCommand = function (command) { + AppMessagesManager.sendText($scope.userID, '/' + command); + $rootScope.$broadcast('history_focus', { + peerString: peerString + }); + }; + $scope.toggleBlock = function (block) { MtpApiManager.invokeApi(block ? 'contacts.block' : 'contacts.unblock', { id: AppUsersManager.getUserInput($scope.userID) diff --git a/app/js/locales/en-us.json b/app/js/locales/en-us.json index fc481dcf..d94006c5 100644 --- a/app/js/locales/en-us.json +++ b/app/js/locales/en-us.json @@ -119,6 +119,8 @@ "user_modal_info": "Info", "user_modal_phone": "Phone", "user_modal_about": "About", + "user_modal_bot_settings": "Settings", + "user_modal_bot_help": "Help", "user_modal_username": "Username", "user_modal_settings": "Settings", "user_modal_notifications": "Notifications", diff --git a/app/partials/desktop/user_modal.html b/app/partials/desktop/user_modal.html index c7a7c5ab..83b9f8cc 100644 --- a/app/partials/desktop/user_modal.html +++ b/app/partials/desktop/user_modal.html @@ -73,6 +73,14 @@ +
+ + +