2014-09-12 13:32:54 +00:00
|
|
|
<div class="im_message_outer_wrap" ng-click="toggleMessage(historyMessage.id, $event)">
|
2014-01-05 16:07:11 +00:00
|
|
|
|
|
|
|
|
2015-02-12 14:32:52 +00:00
|
|
|
<div class="im_message_wrap clearfix" ng-switch="::historyMessage._ == 'messageService'">
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2015-07-01 12:46:34 +00:00
|
|
|
<div class="im_service_message_wrap" ng-switch-when="true" ng-switch="historyMessage.action._ == 'messageActionBotIntro'">
|
|
|
|
<div ng-switch-when="true" class="im_bot_intro_message_wrap">
|
|
|
|
<div class="im_bot_intro_message_header" my-i18n="message_service_bot_intro_header"></div>
|
|
|
|
<div class="im_bot_intro_message" ng-bind-html="::historyMessage.action.rDescription"></div>
|
|
|
|
</div>
|
|
|
|
<div ng-switch-default class="im_service_message">
|
2015-02-12 14:32:52 +00:00
|
|
|
<a class="im_message_author" my-user-link="historyMessage.from_id" short="!historyMessage.to_id.chat_id" color="historyMessage.to_id.chat_id > 0" no-watch="true"></a>
|
2014-07-23 16:34:13 +00:00
|
|
|
<span class="im_message_service" my-service-message></span>
|
2014-02-13 19:08:38 +00:00
|
|
|
</div>
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2014-07-23 16:34:13 +00:00
|
|
|
<a ng-if="::historyMessage.action._ == 'messageActionChatEditPhoto'" class="im_service_message_photo_thumb" href="" ng-click="openPhoto(historyMessage.action.photo.id)">
|
2014-02-13 19:08:38 +00:00
|
|
|
<img
|
|
|
|
class="im_service_message_photo_thumb"
|
|
|
|
my-load-thumb
|
|
|
|
thumb="historyMessage.action.photo.thumb"
|
|
|
|
/>
|
|
|
|
</a>
|
2014-01-05 16:07:11 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2015-03-15 22:55:37 +00:00
|
|
|
<div ng-switch-default class="im_content_message_wrap" ng-class="::[historyMessage.out ? 'im_message_out' : 'im_message_in', historyMessage.fwd_from_id > 0 ? 'im_message_fwd' : '']">
|
2014-03-05 17:34:56 +00:00
|
|
|
<div class="im_content_message_select_area">
|
|
|
|
<i class="icon icon-select-tick"></i>
|
|
|
|
</div>
|
2014-02-13 19:08:38 +00:00
|
|
|
|
2014-09-10 18:22:47 +00:00
|
|
|
<a class="im_message_error_btn" ng-if="::historyMessage.pending || historyMessage.error || false" ng-click="historyMessage.send()">
|
2014-06-17 18:02:35 +00:00
|
|
|
<i class="icon-message-status" tooltip="Try again"></i>
|
2014-02-13 19:08:38 +00:00
|
|
|
</a>
|
2014-03-25 14:39:17 +00:00
|
|
|
|
2015-03-22 21:52:41 +00:00
|
|
|
<i ng-if="::historyMessage.unread && historyMessage.out || historyMessage.pending || false" class="icon-message-status" ng-class="{'icon-message-status-unread': historyMessage.unread, 'icon-message-status-pending': historyMessage.pending}" ng-show="!historyMessage.error"></i>
|
2014-07-23 16:34:13 +00:00
|
|
|
|
2014-12-11 07:25:26 +00:00
|
|
|
<a class="im_message_from_photo pull-left" my-peer-photolink="::historyMessage.from_id" img-class="im_message_from_photo"></a>
|
2014-02-13 19:08:38 +00:00
|
|
|
|
|
|
|
<div class="im_message_meta pull-right text-right">
|
2014-06-17 18:02:35 +00:00
|
|
|
<i class="icon-message-status-tick"></i>
|
2014-07-23 16:34:13 +00:00
|
|
|
<span class="im_message_date" ng-bind="::historyMessage.date | time"></span>
|
2014-02-13 19:08:38 +00:00
|
|
|
</div>
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2014-09-23 17:03:38 +00:00
|
|
|
<div class="im_message_body" ng-class="::{im_message_body_media: historyMessage._ == 'message' && historyMessage.media ? true : false}">
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2015-02-12 14:32:52 +00:00
|
|
|
<a class="im_message_author" my-user-link="historyMessage.from_id" short="!historyMessage.to_id.chat_id" color="historyMessage.to_id.chat_id > 0" no-watch="true"></a>
|
2014-06-19 14:34:28 +00:00
|
|
|
|
2015-03-17 18:26:17 +00:00
|
|
|
<a class="im_message_reply_wrap" my-reply-message="historyMessage.reply_to_msg" ng-if="::historyMessage.reply_to_msg_id"></a>
|
|
|
|
|
2015-03-15 22:55:37 +00:00
|
|
|
<div ng-if="::historyMessage.fwd_from_id > 0" class="im_message_fwd_from">
|
2014-07-23 16:34:13 +00:00
|
|
|
<a class="im_message_fwd_photo pull-left" my-user-photolink="historyMessage.fwd_from_id" img-class="im_message_fwd_photo"></a>
|
2014-06-19 14:34:28 +00:00
|
|
|
<div class="im_message_fwd_author_wrap">
|
2015-05-01 13:18:39 +00:00
|
|
|
<a class="im_message_fwd_author" my-user-link="historyMessage.fwd_from_id" no-watch="true"></a><span class="im_message_fwd_date" ng-bind="::historyMessage.fwd_date | dateOrTime"></span>
|
2014-06-19 14:34:28 +00:00
|
|
|
</div>
|
2014-02-13 19:08:38 +00:00
|
|
|
</div>
|
2014-01-05 16:07:11 +00:00
|
|
|
|
2015-04-02 16:55:28 +00:00
|
|
|
<div class="im_message_text" ng-if="::historyMessage.message.length || false" ng-bind-html="::historyMessage.richMessage" dir="auto"></div>
|
2015-04-10 14:00:39 +00:00
|
|
|
<!-- <div class="im_message_external_embed_wrap" ng-if="::historyMessage.richUrlEmbed || false" my-external-embed="historyMessage.richUrlEmbed"></div> -->
|
2015-04-02 16:55:28 +00:00
|
|
|
<div ng-if="::historyMessage.media || historyMessage.id < 0 ? true : false" class="im_message_media" ng-switch="historyMessage.media._">
|
2014-01-06 19:52:18 +00:00
|
|
|
|
2015-04-29 20:20:32 +00:00
|
|
|
<div ng-switch-when="messageMediaPhoto" my-message-photo="historyMessage.media" message-id="historyMessage.id"></div>
|
|
|
|
<div ng-switch-when="messageMediaVideo" my-message-video="historyMessage.media" message-id="historyMessage.id"></div>
|
2014-10-29 18:54:17 +00:00
|
|
|
<div ng-switch-when="messageMediaDocument" my-message-document="historyMessage.media.document" message-id="historyMessage.id"></div>
|
2015-04-29 20:20:32 +00:00
|
|
|
<div ng-switch-when="messageMediaAudio" class="im_message_audio" my-audio-player audio="historyMessage.media.audio" message="historyMessage"></div>
|
|
|
|
<div ng-switch-when="messageMediaGeo" my-message-geo="historyMessage.media"></div>
|
|
|
|
<div ng-switch-when="messageMediaVenue" my-message-venue="historyMessage.media"></div>
|
2014-12-01 16:16:07 +00:00
|
|
|
<div ng-switch-when="messageMediaContact" class="im_message_contact" my-message-contact></div>
|
2015-04-10 16:00:43 +00:00
|
|
|
<div ng-switch-when="messageMediaWebPage" class="im_message_webpage" my-message-webpage="historyMessage.media.webpage" message-id="historyMessage.id"></div>
|
2014-07-23 16:34:13 +00:00
|
|
|
<div ng-switch-when="messageMediaPending" my-message-pending></div>
|
2014-12-20 17:11:06 +00:00
|
|
|
<div ng-switch-when="messageMediaUnsupported">
|
|
|
|
<div class="im_message_text">
|
|
|
|
The message is not supported on your version of Telegram Web. Update the app to view: <a href="https://web.telegram.org">web.telegram.org</a>.
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-06 19:52:18 +00:00
|
|
|
|
2014-02-13 19:08:38 +00:00
|
|
|
</div>
|
|
|
|
|
2015-04-02 16:55:28 +00:00
|
|
|
|
2014-01-05 16:07:11 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-13 19:08:38 +00:00
|
|
|
|
2014-01-05 16:07:11 +00:00
|
|
|
</div>
|
2014-02-13 19:08:38 +00:00
|
|
|
|