Fixed found outgoing messages

This commit is contained in:
Igor Zhukov 2018-01-02 21:07:25 +04:00
parent c168a26382
commit 4e3539be15
2 changed files with 3 additions and 2 deletions

View File

@ -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
}
}

View File

@ -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'))">