Browse Source

Minor bugfixes

Fixed reply with sticker
Label for mobile group modal
Channel authors hidden for now (Close #1123)
master
Igor Zhukov 9 years ago
parent
commit
6bdc5144b0
  1. 1
      app/js/controllers.js
  2. 4
      app/js/messages_manager.js
  3. 2
      app/partials/mobile/chat_modal.html

1
app/js/controllers.js

@ -2657,6 +2657,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
$scope.$broadcast('ui_message_send'); $scope.$broadcast('ui_message_send');
fwdsSend(); fwdsSend();
resetDraft();
} }
delete $scope.draftMessage.sticker; delete $scope.draftMessage.sticker;
} }

4
app/js/messages_manager.js

@ -1190,12 +1190,12 @@ angular.module('myApp.services')
var fwdHeader = apiMessage.fwd_from; var fwdHeader = apiMessage.fwd_from;
if (fwdHeader) { if (fwdHeader) {
apiMessage.fwdFromID = fwdHeader.from_id ? fwdHeader.from_id : -fwdHeader.channel_id; apiMessage.fwdFromID = fwdHeader.channel_id ? -fwdHeader.channel_id : fwdHeader.from_id;
fwdHeader.date -= serverTimeOffset; fwdHeader.date -= serverTimeOffset;
} }
apiMessage.toID = toPeerID; apiMessage.toID = toPeerID;
apiMessage.fromID = apiMessage.from_id || toPeerID; apiMessage.fromID = apiMessage.pFlags.post ? toPeerID : apiMessage.from_id;
if (apiMessage.via_bot_id > 0) { if (apiMessage.via_bot_id > 0) {
apiMessage.viaBotID = apiMessage.via_bot_id; apiMessage.viaBotID = apiMessage.via_bot_id;

2
app/partials/mobile/chat_modal.html

@ -70,7 +70,7 @@
<a class="mobile_modal_action" ng-click="returnToGroup()" my-i18n="group_modal_return"></a> <a class="mobile_modal_action" ng-click="returnToGroup()" my-i18n="group_modal_return"></a>
</div> </div>
<div class="mobile_modal_action_wrap" ng-if="chatFull.chat._ == 'chatForbidden'"> <div class="mobile_modal_action_wrap" ng-if="chatFull.chat._ == 'chatForbidden'">
<a class="mobile_modal_action" ng-click="flushHistory()" my-i18n="group_modal_return"></a> <a class="mobile_modal_action" ng-click="flushHistory()" my-i18n="group_modal_delete_group"></a>
</div> </div>
<div class="mobile_modal_action_wrap" ng-if="hasRights('edit_photo') &amp;&amp; !photo.updating"> <div class="mobile_modal_action_wrap" ng-if="hasRights('edit_photo') &amp;&amp; !photo.updating">
<span class="mobile_modal_action mobile_modal_upload_action"> <span class="mobile_modal_action mobile_modal_upload_action">

Loading…
Cancel
Save