Fixed repeat command send

Closes #867
This commit is contained in:
Igor Zhukov 2015-09-01 21:37:29 +03:00
parent edeba50f60
commit 0b6ef294aa
2 changed files with 4 additions and 0 deletions

View File

@ -2196,6 +2196,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
$scope.$broadcast('ui_message_send');
}
delete $scope.draftMessage.sticker;
resetDraft();
}
function onCommandSelected (command) {
@ -2203,8 +2204,10 @@ angular.module('myApp.controllers', ['myApp.i18n'])
return;
}
AppMessagesManager.sendText($scope.curDialog.peerID, command);
resetDraft();
delete $scope.draftMessage.sticker;
delete $scope.draftMessage.text;
delete $scope.draftMessage.command;
$scope.$broadcast('ui_message_send');
$scope.$broadcast('ui_peer_draft');
}

View File

@ -2053,6 +2053,7 @@ a.im_message_fwd_photo {
margin-bottom: 0;
max-height: 300px;
overflow: auto;
padding: 4px;
}
.im_message_photo_caption,
.im_message_video_caption {