Browse Source

Fixed found outgoing messages

master
Igor Zhukov 7 years ago
parent
commit
4e3539be15
  1. 1
      app/js/controllers.js
  2. 4
      app/partials/desktop/dialog.html

1
app/js/controllers.js

@ -1033,6 +1033,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -1033,6 +1033,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
var message = AppMessagesManager.getMessage(dialog.top_message)
if (message.fromID > 0) {
wrappedDialog.peerID = message.fromID
wrappedDialog.foundInHistory = true
}
}

4
app/partials/desktop/dialog.html

@ -18,12 +18,12 @@ @@ -18,12 +18,12 @@
></i>
</div>
<div class="im_dialog_photo pull-left" my-peer-photolink="::dialogMessage.peerID" img-class="im_dialog_photo" watch="true" for-dialog="true"></div>
<div class="im_dialog_photo pull-left" my-peer-photolink="::dialogMessage.peerID" img-class="im_dialog_photo" watch="true" for-dialog="!dialogMessage.foundInHistory"></div>
<div class="im_dialog_message_wrap">
<div class="im_dialog_peer">
<span my-peer-link="dialogMessage.peerID" verified="true" for-dialog="true"></span>
<span my-peer-link="dialogMessage.peerID" verified="true" for-dialog="!dialogMessage.foundInHistory"></span>
</div>
<div ng-switch="dialogMessage.typing ? 'typing' : (!dialogMessage.unreadCount && dialogMessage.draft ? 'draft' : (dialogMessage.deleted ? 'deleted' : 'message'))">

Loading…
Cancel
Save