2015-09-28 20:25:55 +00:00
|
|
|
<a class="im_dialog" ng-mousedown="dialogSelect(dialogMessage.peerString, dialogMessage.unreadCount == -1 && dialogMessage.mid)">
|
2014-01-05 16:07:11 +00:00
|
|
|
|
|
|
|
<div class="im_dialog_meta pull-right text-right">
|
2014-03-25 14:39:17 +00:00
|
|
|
<div class="im_dialog_date" ng-bind="dialogMessage.dateText"></div>
|
2014-01-23 13:49:24 +00:00
|
|
|
<span
|
2016-07-08 10:11:24 +00:00
|
|
|
class="im_dialog_badge badge ng-hide"
|
2015-11-12 20:02:28 +00:00
|
|
|
ng-show="dialogMessage.unreadCount > 0 && !dialogMessage.pFlags.out"
|
2014-01-23 13:49:24 +00:00
|
|
|
ng-bind="dialogMessage.unreadCount"
|
2015-11-29 17:49:54 +00:00
|
|
|
my-peer-muted="dialogMessage.peerID" muted-class="im_dialog_badge_muted"
|
2014-01-23 13:49:24 +00:00
|
|
|
></span>
|
2014-02-05 19:44:31 +00:00
|
|
|
<i
|
2016-07-08 10:11:24 +00:00
|
|
|
class="im_dialog_unread ng-hide"
|
2015-11-12 20:02:28 +00:00
|
|
|
ng-show="dialogMessage.pFlags.out && dialogMessage.pFlags.unread"
|
2014-02-05 19:44:31 +00:00
|
|
|
></i>
|
2017-05-10 15:17:25 +00:00
|
|
|
<i
|
|
|
|
class="im_dialog_pinned ng-hide"
|
|
|
|
ng-show="dialogMessage.pinned && !dialogMessage.unreadCount && !dialogMessage.pFlags.unread"
|
|
|
|
></i>
|
2014-01-05 16:07:11 +00:00
|
|
|
</div>
|
|
|
|
|
2014-12-11 07:25:26 +00:00
|
|
|
<div class="im_dialog_photo pull-left" my-peer-photolink="::dialogMessage.peerID" img-class="im_dialog_photo" watch="true"></div>
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2016-12-12 10:59:36 +00:00
|
|
|
<div class="im_dialog_message_wrap">
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2015-09-23 18:18:39 +00:00
|
|
|
<div class="im_dialog_peer">
|
2015-10-08 17:11:31 +00:00
|
|
|
<span my-peer-link="dialogMessage.peerID" verified="true"></span>
|
2014-01-05 16:07:11 +00:00
|
|
|
</div>
|
|
|
|
|
2016-06-24 12:49:46 +00:00
|
|
|
<div ng-switch="dialogMessage.typing ? 'typing' : (!dialogMessage.unreadCount && dialogMessage.draft ? 'draft' : (dialogMessage.deleted ? 'deleted' : 'message'))">
|
2015-02-07 10:50:30 +00:00
|
|
|
|
2016-12-12 10:59:36 +00:00
|
|
|
<div ng-switch-when="typing" class="im_dialog_message">
|
2016-06-24 12:49:46 +00:00
|
|
|
<span class="im_short_message_service" my-i18n="im_conversation_group_typing">
|
|
|
|
<my-i18n-param name="name"><span my-peer-link="dialogMessage.typing" short="true" class="im_dialog_chat_from_wrap"></span></my-i18n-param><my-i18n-param name="dots"><span my-loading-dots></span></my-i18n-param>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-switch-when="draft" class="im_dialog_message">
|
|
|
|
<span class="im_dialog_chat_from_wrap">
|
|
|
|
<span class="im_dialog_draft_from" my-i18n="conversation_draft"></span>
|
|
|
|
</span>
|
|
|
|
<span class="im_short_message_text" ng-bind-html="dialogMessage.draft.richMessage"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-switch-when="deleted" class="im_dialog_message">
|
2016-06-27 16:24:14 +00:00
|
|
|
<span class="im_short_message_text"> </span>
|
2014-07-07 08:55:46 +00:00
|
|
|
</div>
|
2016-06-24 12:49:46 +00:00
|
|
|
|
|
|
|
<div ng-switch-when="message" class="im_dialog_message">
|
2015-09-25 12:30:32 +00:00
|
|
|
<span ng-switch="dialogMessage.peerID > 0 || dialogMessage.fromID < 0">
|
2015-02-07 10:50:30 +00:00
|
|
|
<span ng-switch-when="true">
|
2015-11-23 10:23:55 +00:00
|
|
|
<span class="im_dialog_chat_from_wrap" ng-if="dialogMessage.pFlags.out && dialogMessage.fromID > 0">
|
2015-02-07 10:50:30 +00:00
|
|
|
<span
|
|
|
|
class="im_dialog_chat_from"
|
|
|
|
my-i18n="conversation_you"
|
2015-02-12 14:32:52 +00:00
|
|
|
></span><span ng-if="dialogMessage.message.length > 0 || !!dialogMessage.media">:</span>
|
2015-02-07 10:50:30 +00:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span ng-switch-default>
|
2015-11-12 20:02:28 +00:00
|
|
|
<span class="im_dialog_chat_from_wrap" ng-switch="dialogMessage.pFlags.out && dialogMessage._ != 'messageService'">
|
2015-02-07 10:50:30 +00:00
|
|
|
<span
|
|
|
|
ng-switch-when="false"
|
|
|
|
class="im_dialog_chat_from"
|
2015-09-23 18:18:39 +00:00
|
|
|
my-peer-link="dialogMessage.from_id" short="true" peer-watch="true"
|
2015-02-07 10:50:30 +00:00
|
|
|
></span><span
|
|
|
|
ng-switch-when="true"
|
|
|
|
class="im_dialog_chat_from"
|
|
|
|
my-i18n="conversation_you"
|
|
|
|
></span><span ng-if="dialogMessage.message.length || dialogMessage.media">:</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
2014-07-07 08:55:46 +00:00
|
|
|
</span>
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2016-04-11 12:49:52 +00:00
|
|
|
<span my-short-message="dialogMessage"></span>
|
2014-07-07 08:55:46 +00:00
|
|
|
</div>
|
2014-01-05 16:07:11 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2016-06-24 12:49:46 +00:00
|
|
|
|
2014-01-05 16:07:11 +00:00
|
|
|
</a>
|