Fixed lots of mobile issues
Moved all user / group photos to rounded with initials placeholder
This commit is contained in:
parent
d9fe065a14
commit
e66c02e89c
@ -1153,13 +1153,11 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
|
|
||||||
safeReplaceObject($scope.historyPeer, {
|
safeReplaceObject($scope.historyPeer, {
|
||||||
id: peerID,
|
id: peerID,
|
||||||
data: peerData,
|
data: peerData
|
||||||
photo: AppPeersManager.getPeerPhoto(peerID, 'User', 'Group')
|
|
||||||
});
|
});
|
||||||
|
|
||||||
MtpApiManager.getUserID().then(function (id) {
|
MtpApiManager.getUserID().then(function (id) {
|
||||||
$scope.ownID = id;
|
$scope.ownID = id;
|
||||||
$scope.ownPhoto = AppUsersManager.getUserPhoto(id, 'User');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (preload) {
|
if (preload) {
|
||||||
@ -2916,7 +2914,6 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
var peerString = AppUsersManager.getUserString($scope.userID);
|
var peerString = AppUsersManager.getUserString($scope.userID);
|
||||||
|
|
||||||
$scope.user = AppUsersManager.getUser($scope.userID);
|
$scope.user = AppUsersManager.getUser($scope.userID);
|
||||||
$scope.userPhoto = AppUsersManager.getUserPhoto($scope.userID, 'User');
|
|
||||||
$scope.blocked = false;
|
$scope.blocked = false;
|
||||||
|
|
||||||
$scope.settings = {notifications: true};
|
$scope.settings = {notifications: true};
|
||||||
@ -3333,7 +3330,6 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
|
|
||||||
MtpApiManager.getUserID().then(function (id) {
|
MtpApiManager.getUserID().then(function (id) {
|
||||||
$scope.profile = AppUsersManager.getUser(id);
|
$scope.profile = AppUsersManager.getUser(id);
|
||||||
$scope.photo = AppUsersManager.getUserPhoto(id, 'User');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
MtpApiManager.invokeApi('users.getFullUser', {
|
MtpApiManager.invokeApi('users.getFullUser', {
|
||||||
@ -3427,7 +3423,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
previous: true
|
previous: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$scope.photo = AppUsersManager.getUserPhoto(id, 'User');
|
$scope.photo = {};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})['finally'](function () {
|
})['finally'](function () {
|
||||||
@ -3452,7 +3448,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
previous: true
|
previous: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$scope.photo = AppUsersManager.getUserPhoto(id, 'User');
|
$scope.photo = {};
|
||||||
});
|
});
|
||||||
})['finally'](function () {
|
})['finally'](function () {
|
||||||
delete $scope.photo.updating;
|
delete $scope.photo.updating;
|
||||||
@ -3969,8 +3965,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
angular.forEach(contactsList, function(userID) {
|
angular.forEach(contactsList, function(userID) {
|
||||||
var contact = {
|
var contact = {
|
||||||
userID: userID,
|
userID: userID,
|
||||||
user: AppUsersManager.getUser(userID),
|
user: AppUsersManager.getUser(userID)
|
||||||
userPhoto: AppUsersManager.getUserPhoto(userID, 'User')
|
|
||||||
}
|
}
|
||||||
doneIDs.push(userID);
|
doneIDs.push(userID);
|
||||||
$scope.contacts.push(contact);
|
$scope.contacts.push(contact);
|
||||||
@ -4238,7 +4233,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
.controller('ChatInviteLinkModalController', function (_, $scope, $timeout, $modalInstance, AppChatsManager, ErrorService) {
|
.controller('ChatInviteLinkModalController', function (_, $scope, $timeout, $modalInstance, AppChatsManager, AppProfileManager, ErrorService) {
|
||||||
|
|
||||||
$scope.exportedInvite = {link: _('group_invite_link_loading_raw')};
|
$scope.exportedInvite = {link: _('group_invite_link_loading_raw')};
|
||||||
|
|
||||||
@ -4260,7 +4255,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
if (force) {
|
if (force) {
|
||||||
$scope.exportedInvite.revoking = true;
|
$scope.exportedInvite.revoking = true;
|
||||||
}
|
}
|
||||||
AppChatsManager.getChatInviteLink($scope.chatID, force).then(function (link) {
|
AppProfileManager.getChatInviteLink($scope.chatID, force).then(function (link) {
|
||||||
$scope.exportedInvite = {link: link, canRevoke: true};
|
$scope.exportedInvite = {link: link, canRevoke: true};
|
||||||
selectLink();
|
selectLink();
|
||||||
|
|
||||||
|
@ -2608,37 +2608,6 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
.directive('myUserPhotolink', function (AppUsersManager) {
|
|
||||||
|
|
||||||
return {
|
|
||||||
link: link,
|
|
||||||
template: '<img my-load-thumb thumb="photo" /><i class="icon icon-online" ng-if="::showStatus || false" ng-show="user.status._ == \'userStatusOnline\'"></i>'
|
|
||||||
};
|
|
||||||
|
|
||||||
function link($scope, element, attrs) {
|
|
||||||
|
|
||||||
var userID = $scope.$eval(attrs.myUserPhotolink);
|
|
||||||
|
|
||||||
$scope.photo = AppUsersManager.getUserPhoto(userID, 'User');
|
|
||||||
|
|
||||||
if ($scope.showStatus = attrs.status && $scope.$eval(attrs.status)) {
|
|
||||||
$scope.user = AppUsersManager.getUser(userID);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (element[0].tagName == 'A') {
|
|
||||||
element.on('click', function (e) {
|
|
||||||
AppUsersManager.openUser(userID, attrs.userOverride && $scope.$eval(attrs.userOverride));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (attrs.imgClass) {
|
|
||||||
$(element[0].firstChild).addClass(attrs.imgClass)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
.directive('myPeerLink', function (AppChatsManager, AppUsersManager) {
|
.directive('myPeerLink', function (AppChatsManager, AppUsersManager) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -1670,7 +1670,6 @@ angular.module('myApp.services')
|
|||||||
message.peerID = getMessagePeer(message);
|
message.peerID = getMessagePeer(message);
|
||||||
message.peerData = AppPeersManager.getPeer(message.peerID);
|
message.peerData = AppPeersManager.getPeer(message.peerID);
|
||||||
message.peerString = AppPeersManager.getPeerString(message.peerID);
|
message.peerString = AppPeersManager.getPeerString(message.peerID);
|
||||||
message.peerPhoto = AppPeersManager.getPeerPhoto(message.peerID, 'User', 'Group');
|
|
||||||
message.unreadCount = unreadCount;
|
message.unreadCount = unreadCount;
|
||||||
|
|
||||||
if (message._ == 'messageService' && message.action.user_id) {
|
if (message._ == 'messageService' && message.action.user_id) {
|
||||||
@ -2056,7 +2055,7 @@ angular.module('myApp.services')
|
|||||||
|
|
||||||
if (peerID > 0) {
|
if (peerID > 0) {
|
||||||
var fromUser = AppUsersManager.getUser(message.from_id);
|
var fromUser = AppUsersManager.getUser(message.from_id);
|
||||||
var fromPhoto = AppUsersManager.getUserPhoto(message.from_id, 'User');
|
var fromPhoto = AppUsersManager.getUserPhoto(message.from_id);
|
||||||
|
|
||||||
notification.title = (fromUser.first_name || '') +
|
notification.title = (fromUser.first_name || '') +
|
||||||
(fromUser.first_name && fromUser.last_name ? ' ' : '') +
|
(fromUser.first_name && fromUser.last_name ? ' ' : '') +
|
||||||
@ -2079,7 +2078,7 @@ angular.module('myApp.services')
|
|||||||
notification.title;
|
notification.title;
|
||||||
}
|
}
|
||||||
|
|
||||||
notificationPhoto = AppChatsManager.getChatPhoto(-peerID, 'Group');
|
notificationPhoto = AppChatsManager.getChatPhoto(-peerID);
|
||||||
|
|
||||||
peerString = AppChatsManager.getChatString(-peerID);
|
peerString = AppChatsManager.getChatString(-peerID);
|
||||||
}
|
}
|
||||||
|
@ -188,7 +188,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
return angular.isObject(users[id]);
|
return angular.isObject(users[id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUserPhoto(id, placeholder) {
|
function getUserPhoto(id) {
|
||||||
var user = getUser(id);
|
var user = getUser(id);
|
||||||
|
|
||||||
if (id == 333000) {
|
if (id == 333000) {
|
||||||
@ -203,7 +203,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
num: user.num,
|
num: user.num,
|
||||||
placeholder: 'img/placeholders/' + placeholder + 'Avatar' + user.num + '@2x.png',
|
placeholder: 'img/placeholders/UserAvatar' + user.num + '@2x.png',
|
||||||
location: cachedPhotoLocations[id]
|
location: cachedPhotoLocations[id]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -591,7 +591,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
var lastWord = titleWords.pop();
|
var lastWord = titleWords.pop();
|
||||||
apiChat.initials = firstWord.charAt(0) + (lastWord ? lastWord.charAt(0) : firstWord.charAt(1));
|
apiChat.initials = firstWord.charAt(0) + (lastWord ? lastWord.charAt(0) : firstWord.charAt(1));
|
||||||
|
|
||||||
apiChat.num = (Math.abs(apiChat.id >> 1) % (Config.Mobile ? 4 : 8)) + 1;
|
apiChat.num = (Math.abs(apiChat.id >> 1) % 8) + 1;
|
||||||
|
|
||||||
if (apiChat.username) {
|
if (apiChat.username) {
|
||||||
var searchUsername = SearchIndexManager.cleanUsername(apiChat.username);
|
var searchUsername = SearchIndexManager.cleanUsername(apiChat.username);
|
||||||
@ -646,29 +646,11 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getChatInviteLink (id, force) {
|
|
||||||
return getChatFull(id).then(function (chatFull) {
|
|
||||||
if (!force &&
|
|
||||||
chatFull.exported_invite &&
|
|
||||||
chatFull.exported_invite._ == 'chatInviteExported') {
|
|
||||||
return chatFull.exported_invite.link;
|
|
||||||
}
|
|
||||||
return MtpApiManager.invokeApi('messages.exportChatInvite', {
|
|
||||||
chat_id: getChatInput(id)
|
|
||||||
}).then(function (exportedInvite) {
|
|
||||||
if (chatsFull[id] !== undefined) {
|
|
||||||
chatsFull[id].exported_invite = exportedInvite;
|
|
||||||
}
|
|
||||||
return exportedInvite.link;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function hasChat (id) {
|
function hasChat (id) {
|
||||||
return angular.isObject(chats[id]);
|
return angular.isObject(chats[id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getChatPhoto(id, placeholder) {
|
function getChatPhoto(id) {
|
||||||
var chat = getChat(id);
|
var chat = getChat(id);
|
||||||
|
|
||||||
if (cachedPhotoLocations[id] === undefined) {
|
if (cachedPhotoLocations[id] === undefined) {
|
||||||
@ -676,7 +658,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
placeholder: 'img/placeholders/' + placeholder + 'Avatar' + (Config.Mobile ? chat.num : Math.ceil(chat.num / 2)) + '@2x.png',
|
placeholder: 'img/placeholders/GroupAvatar' + Math.ceil(chat.num / 2) + '@2x.png',
|
||||||
location: cachedPhotoLocations[id]
|
location: cachedPhotoLocations[id]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -767,7 +749,6 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
getChannelInput: getChannelInput,
|
getChannelInput: getChannelInput,
|
||||||
getChatPhoto: getChatPhoto,
|
getChatPhoto: getChatPhoto,
|
||||||
getChatString: getChatString,
|
getChatString: getChatString,
|
||||||
getChatInviteLink: getChatInviteLink,
|
|
||||||
resolveUsername: resolveUsername,
|
resolveUsername: resolveUsername,
|
||||||
hasChat: hasChat,
|
hasChat: hasChat,
|
||||||
wrapForFull: wrapForFull,
|
wrapForFull: wrapForFull,
|
||||||
@ -897,10 +878,10 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
: AppChatsManager.getChat(-peerID);
|
: AppChatsManager.getChat(-peerID);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPeerPhoto (peerID, userPlaceholder, chatPlaceholder) {
|
function getPeerPhoto (peerID) {
|
||||||
return peerID > 0
|
return peerID > 0
|
||||||
? AppUsersManager.getUserPhoto(peerID, userPlaceholder)
|
? AppUsersManager.getUserPhoto(peerID)
|
||||||
: AppChatsManager.getChatPhoto(-peerID, chatPlaceholder)
|
: AppChatsManager.getChatPhoto(-peerID)
|
||||||
}
|
}
|
||||||
|
|
||||||
function isChannel (peerID) {
|
function isChannel (peerID) {
|
||||||
@ -1035,6 +1016,24 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getChatInviteLink (id, force) {
|
||||||
|
return getChatFull(id).then(function (chatFull) {
|
||||||
|
if (!force &&
|
||||||
|
chatFull.exported_invite &&
|
||||||
|
chatFull.exported_invite._ == 'chatInviteExported') {
|
||||||
|
return chatFull.exported_invite.link;
|
||||||
|
}
|
||||||
|
return MtpApiManager.invokeApi('messages.exportChatInvite', {
|
||||||
|
chat_id: getChatInput(id)
|
||||||
|
}).then(function (exportedInvite) {
|
||||||
|
if (chatsFull[id] !== undefined) {
|
||||||
|
chatsFull[id].exported_invite = exportedInvite;
|
||||||
|
}
|
||||||
|
return exportedInvite.link;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function getChannelParticipants (id) {
|
function getChannelParticipants (id) {
|
||||||
return MtpApiManager.invokeApi('channels.getParticipants', {
|
return MtpApiManager.invokeApi('channels.getParticipants', {
|
||||||
channel: AppChatsManager.getChannelInput(id),
|
channel: AppChatsManager.getChannelInput(id),
|
||||||
@ -1162,6 +1161,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
return {
|
return {
|
||||||
getPeerBots: getPeerBots,
|
getPeerBots: getPeerBots,
|
||||||
getProfile: getProfile,
|
getProfile: getProfile,
|
||||||
|
getChatInviteLink: getChatInviteLink,
|
||||||
getChatFull: getChatFull,
|
getChatFull: getChatFull,
|
||||||
getChannelFull: getChannelFull
|
getChannelFull: getChannelFull
|
||||||
}
|
}
|
||||||
|
@ -3027,7 +3027,12 @@ a.contacts_modal_search_clear {
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 2px;
|
border-radius: 20px;
|
||||||
|
|
||||||
|
.peer_initials {
|
||||||
|
line-height: 40px;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.contacts_modal_contact_status {
|
.contacts_modal_contact_status {
|
||||||
color: #999;
|
color: #999;
|
||||||
@ -3073,13 +3078,17 @@ a.contacts_modal_contact:hover .md_modal_list_peer_description,
|
|||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
border-radius: 2px;
|
border-radius: 20px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
img& {
|
img& {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
.peer_initials {
|
||||||
|
line-height: 40px;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat_modal_members_forbidden {
|
.chat_modal_members_forbidden {
|
||||||
|
@ -405,6 +405,13 @@ html {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.peer_initials {
|
||||||
|
line-height: 36px;
|
||||||
|
font-size: 15px;
|
||||||
|
border-radius: 18px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar_peer_not_selected & {
|
.navbar_peer_not_selected & {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -1010,6 +1017,11 @@ a.im_dialog {
|
|||||||
|
|
||||||
div& {
|
div& {
|
||||||
margin: 0 12px 0 0;
|
margin: 0 12px 0 0;
|
||||||
|
|
||||||
|
.peer_initials {
|
||||||
|
line-height: 54px;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1104,6 +1116,10 @@ a.im_message_fwd_author {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.md_simple_modal_window .modal-dialog {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -1141,6 +1157,11 @@ a.im_message_fwd_author {
|
|||||||
width: 64px;
|
width: 64px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
margin-right: 14px;
|
margin-right: 14px;
|
||||||
|
|
||||||
|
.peer_initials {
|
||||||
|
line-height: 64px;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&_chat_modal_image {
|
&_chat_modal_image {
|
||||||
|
@ -49,14 +49,7 @@
|
|||||||
|
|
||||||
<div class="mobile_user_modal_photo_profile_wrap">
|
<div class="mobile_user_modal_photo_profile_wrap">
|
||||||
|
|
||||||
<a href="" ng-click="openPhoto(chatFull.chat_photo.id, {p: -chatFull.chat.id})" class="mobile_user_modal_image_wrap pull-left" ng-class="{disabled: !chatFull.chat.photo.photo_small}">
|
<a ng-click="openPhoto(chatFull.chat_photo.id, {p: -chatFull.chat.id})" class="mobile_user_modal_image_wrap pull-left" my-peer-photolink="::-chatFull.chat.id" img-class="mobile_user_modal_image mobile_chat_modal_image" no-open="true" watch="true" ng-class="{disabled: !chatFull.chat.photo.photo_small}" ng-disabled="!chatFull.chat.photo.photo_small"></a>
|
||||||
<img
|
|
||||||
class="mobile_user_modal_image mobile_chat_modal_image"
|
|
||||||
my-load-thumb
|
|
||||||
watch="true"
|
|
||||||
thumb="chatFull.thumb"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<div class="mobile_user_modal_info_wrap clearfix">
|
<div class="mobile_user_modal_info_wrap clearfix">
|
||||||
<h4 class="mobile_user_modal_header" my-peer-link="-chatFull.chat.id"></h4>
|
<h4 class="mobile_user_modal_header" my-peer-link="-chatFull.chat.id"></h4>
|
||||||
@ -122,7 +115,7 @@
|
|||||||
<a ng-if="participant.canKick" ng-click="kickFromChannel(participant.user_id)" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_members_kick"></a>
|
<a ng-if="participant.canKick" ng-click="kickFromChannel(participant.user_id)" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_members_kick"></a>
|
||||||
<a ng-if="participant.canLeave" ng-click="leaveChannel()" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_menu_leave"></a>
|
<a ng-if="participant.canLeave" ng-click="leaveChannel()" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_menu_leave"></a>
|
||||||
|
|
||||||
<a class="chat_modal_participant_photo pull-left" my-user-photolink="participant.user_id" img-class="chat_modal_participant_photo" status="true"></a>
|
<a class="chat_modal_participant_photo pull-left" my-peer-photolink="participant.user_id" img-class="chat_modal_participant_photo" status="true"></a>
|
||||||
|
|
||||||
<div class="chat_modal_participant_name">
|
<div class="chat_modal_participant_name">
|
||||||
<a my-peer-link="participant.user_id"></a>
|
<a my-peer-link="participant.user_id"></a>
|
||||||
|
@ -46,14 +46,7 @@
|
|||||||
|
|
||||||
<div class="mobile_user_modal_photo_profile_wrap">
|
<div class="mobile_user_modal_photo_profile_wrap">
|
||||||
|
|
||||||
<a href="" ng-click="openPhoto(chatFull.chat_photo.id, {p: -chatFull.chat.id})" class="mobile_user_modal_image_wrap pull-left" ng-class="{disabled: !chatFull.chat.photo.photo_small}">
|
<a ng-click="openPhoto(chatFull.chat_photo.id, {p: -chatFull.chat.id})" class="mobile_user_modal_image_wrap pull-left" my-peer-photolink="::-chatFull.chat.id" img-class="mobile_user_modal_image mobile_chat_modal_image" no-open="true" watch="true" ng-class="{disabled: !chatFull.chat.photo.photo_small}" ng-disabled="!chatFull.chat.photo.photo_small"></a>
|
||||||
<img
|
|
||||||
class="mobile_user_modal_image mobile_chat_modal_image"
|
|
||||||
my-load-thumb
|
|
||||||
watch="true"
|
|
||||||
thumb="chatFull.thumb"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<div class="mobile_user_modal_info_wrap clearfix">
|
<div class="mobile_user_modal_info_wrap clearfix">
|
||||||
<h4 class="mobile_user_modal_header" my-peer-link="-chatFull.chat.id"></h4>
|
<h4 class="mobile_user_modal_header" my-peer-link="-chatFull.chat.id"></h4>
|
||||||
@ -109,7 +102,7 @@
|
|||||||
<a ng-if="participant.canKick" ng-click="kickFromGroup(participant.user_id)" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_members_kick"></a>
|
<a ng-if="participant.canKick" ng-click="kickFromGroup(participant.user_id)" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_members_kick"></a>
|
||||||
<a ng-if="participant.canLeave" ng-click="leaveGroup()" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_menu_leave"></a>
|
<a ng-if="participant.canLeave" ng-click="leaveGroup()" class="chat_modal_participant_kick pull-right" my-i18n="group_modal_menu_leave"></a>
|
||||||
|
|
||||||
<a class="chat_modal_participant_photo pull-left" my-user-photolink="participant.user_id" img-class="chat_modal_participant_photo" status="true"></a>
|
<a class="chat_modal_participant_photo pull-left" my-peer-photolink="participant.user_id" img-class="chat_modal_participant_photo" status="true"></a>
|
||||||
|
|
||||||
<div class="chat_modal_participant_name">
|
<div class="chat_modal_participant_name">
|
||||||
<a my-peer-link="participant.user_id"></a>
|
<a my-peer-link="participant.user_id"></a>
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
|
|
||||||
<i ng-if="multiSelect" class="icon icon-contact-tick"></i>
|
<i ng-if="multiSelect" class="icon icon-contact-tick"></i>
|
||||||
|
|
||||||
<div class="contacts_modal_contact_photo pull-left" my-user-photolink="contact.userID" status="true" img-class="contacts_modal_contact_photo"></div>
|
<div class="contacts_modal_contact_photo pull-left" my-peer-photolink="contact.userID" status="true" img-class="contacts_modal_contact_photo"></div>
|
||||||
<div class="contacts_modal_contact_name" my-peer-link="contact.userID"></div>
|
<div class="contacts_modal_contact_name" my-peer-link="contact.userID"></div>
|
||||||
<div class="contacts_modal_contact_status" ng-switch="contact.found">
|
<div class="contacts_modal_contact_status" ng-switch="contact.found">
|
||||||
<span ng-switch-when="true" ng-bind="'@' + contact.user.username"></span>
|
<span ng-switch-when="true" ng-bind="'@' + contact.user.username"></span>
|
||||||
|
@ -13,14 +13,7 @@
|
|||||||
></i>
|
></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="im_dialog_photo pull-left">
|
<div class="im_dialog_photo pull-left" my-peer-photolink="::dialogMessage.peerID" img-class="im_dialog_photo" watch="true"></div>
|
||||||
<img
|
|
||||||
class="im_dialog_photo"
|
|
||||||
my-load-thumb
|
|
||||||
watch="true"
|
|
||||||
thumb="dialogMessage.peerPhoto"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="im_dialog_message_wrap">
|
<div class="im_dialog_message_wrap">
|
||||||
|
|
||||||
|
@ -2,13 +2,8 @@
|
|||||||
<div class="navbar navbar-static-top navbar-inverse" role="navigation" ng-class="{navbar_peer_not_selected: !curDialog.peer, navbar_offline: offline, navbar_history_select: historyState.selectActions}">
|
<div class="navbar navbar-static-top navbar-inverse" role="navigation" ng-class="{navbar_peer_not_selected: !curDialog.peer, navbar_offline: offline, navbar_history_select: historyState.selectActions}">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<a class="navbar-peer-wrap" ng-click="showPeerInfo()">
|
|
||||||
<img
|
<a class="navbar-peer-wrap" my-peer-photolink="historyPeer.id" peer-watch="true"></a>
|
||||||
my-load-thumb
|
|
||||||
watch="true"
|
|
||||||
thumb="historyPeer.photo"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<div class="navbar-toggle-wrap dropdown" dropdown>
|
<div class="navbar-toggle-wrap dropdown" dropdown>
|
||||||
<a class="dropdown-toggle navbar-toggle" dropdown-toggle>
|
<a class="dropdown-toggle navbar-toggle" dropdown-toggle>
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<ul class="nav nav-pills nav-stacked">
|
<ul class="nav nav-pills nav-stacked">
|
||||||
<li class="im_dialog_wrap" ng-repeat="contact in contacts | orderBy:'user.sortName' track by contact.userID" ng-class="{active: curDialog.peerID == contact.userID}">
|
<li class="im_dialog_wrap" ng-repeat="contact in contacts | orderBy:'user.sortName' track by contact.userID" ng-class="{active: curDialog.peerID == contact.userID}">
|
||||||
<a class="im_dialog" ng-mousedown="dialogSelect(contact.peerString)">
|
<a class="im_dialog" ng-mousedown="dialogSelect(contact.peerString)">
|
||||||
<div class="im_dialog_photo pull-left" my-user-photolink="contact.userID" img-class="im_dialog_photo" watch="true"></div>
|
<div class="im_dialog_photo pull-left" my-peer-photolink="contact.userID" img-class="im_dialog_photo" watch="true"></div>
|
||||||
<div class="im_dialog_message_wrap">
|
<div class="im_dialog_message_wrap">
|
||||||
<div class="im_dialog_peer">
|
<div class="im_dialog_peer">
|
||||||
<span class="im_dialog_user" my-peer-link="contact.userID"></span>
|
<span class="im_dialog_user" my-peer-link="contact.userID"></span>
|
||||||
@ -51,7 +51,7 @@
|
|||||||
<ul class="nav nav-pills nav-stacked">
|
<ul class="nav nav-pills nav-stacked">
|
||||||
<li class="im_dialog_wrap" ng-repeat="foundPeer in foundPeers track by foundPeer.id" ng-class="{active: curDialog.peerID == foundPeer.id}">
|
<li class="im_dialog_wrap" ng-repeat="foundPeer in foundPeers track by foundPeer.id" ng-class="{active: curDialog.peerID == foundPeer.id}">
|
||||||
<a class="im_dialog" ng-mousedown="dialogSelect(foundPeer.peerString)">
|
<a class="im_dialog" ng-mousedown="dialogSelect(foundPeer.peerString)">
|
||||||
<div class="im_dialog_photo pull-left" my-user-photolink="foundPeer.id" img-class="im_dialog_photo" watch="true"></div>
|
<div class="im_dialog_photo pull-left" my-peer-photolink="foundPeer.id" img-class="im_dialog_photo" watch="true"></div>
|
||||||
<div class="im_dialog_message_wrap">
|
<div class="im_dialog_message_wrap">
|
||||||
<div class="im_dialog_peer">
|
<div class="im_dialog_peer">
|
||||||
<span class="im_dialog_user" my-peer-link="foundPeer.id"></span>
|
<span class="im_dialog_user" my-peer-link="foundPeer.id"></span>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div>
|
<div>
|
||||||
<a ng-if="historyMessage.media.user_id > 0" class="im_message_contact_photo pull-left" my-user-photolink="historyMessage.media.user_id" img-class="im_message_contact_photo" user-override="historyMessage.media"></a>
|
<a ng-if="historyMessage.media.user_id > 0" class="im_message_contact_photo pull-left" my-peer-photolink="historyMessage.media.user_id" img-class="im_message_contact_photo" user-override="historyMessage.media"></a>
|
||||||
<div class="im_message_contact_name" ng-switch="historyMessage.media.user_id > 0">
|
<div class="im_message_contact_name" ng-switch="historyMessage.media.user_id > 0">
|
||||||
<a ng-switch-when="true" my-peer-link="historyMessage.media.user_id" user-override="historyMessage.media"></a>
|
<a ng-switch-when="true" my-peer-link="historyMessage.media.user_id" user-override="historyMessage.media"></a>
|
||||||
<span ng-switch-default ng-bind-html="::historyMessage.media.rFullName"></span>
|
<span ng-switch-default ng-bind-html="::historyMessage.media.rFullName"></span>
|
||||||
|
@ -47,13 +47,7 @@
|
|||||||
<ul class="nav nav-pills nav-stacked">
|
<ul class="nav nav-pills nav-stacked">
|
||||||
<li class="im_dialog_wrap" ng-repeat="contact in contacts | orderBy:'user.sortName' track by contact.userID" ng-class="{active: curDialog.peerID == contact.userID}">
|
<li class="im_dialog_wrap" ng-repeat="contact in contacts | orderBy:'user.sortName' track by contact.userID" ng-class="{active: curDialog.peerID == contact.userID}">
|
||||||
<a class="im_dialog" ng-click="dialogSelect(contact.peerString)">
|
<a class="im_dialog" ng-click="dialogSelect(contact.peerString)">
|
||||||
<div class="im_dialog_photo pull-left">
|
<div class="im_dialog_photo pull-left" my-peer-photolink="::contact.userID" img-class="im_dialog_photo" watch="true"></div>
|
||||||
<img
|
|
||||||
class="im_dialog_photo"
|
|
||||||
my-load-thumb
|
|
||||||
thumb="contact.userPhoto"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="im_dialog_message_wrap">
|
<div class="im_dialog_message_wrap">
|
||||||
<div class="im_dialog_peer">
|
<div class="im_dialog_peer">
|
||||||
<span class="im_dialog_user" my-peer-link="contact.userID"></span>
|
<span class="im_dialog_user" my-peer-link="contact.userID"></span>
|
||||||
|
@ -59,14 +59,7 @@
|
|||||||
|
|
||||||
<div class="mobile_user_modal_photo_profile_wrap">
|
<div class="mobile_user_modal_photo_profile_wrap">
|
||||||
|
|
||||||
<a href="" ng-click="openPhoto(profile.photo.photo_id, {p: profile.id})" class="mobile_user_modal_image_wrap pull-left" ng-class="{disabled: !user.photo.id}">
|
<a ng-click="openPhoto(profile.photo.photo_id, {p: profile.id})" class="mobile_user_modal_image_wrap pull-left" my-peer-photolink="::profile.id" img-class="mobile_user_modal_image" no-open="true" watch="true" ng-class="{disabled: !profile.photo.photo_id}" ng-disabled="!profile.photo.photo_id"></a>
|
||||||
<img
|
|
||||||
class="mobile_user_modal_image"
|
|
||||||
my-load-thumb
|
|
||||||
watch="true"
|
|
||||||
thumb="photo"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<div class="mobile_user_modal_info_wrap clearfix">
|
<div class="mobile_user_modal_info_wrap clearfix">
|
||||||
<h4 class="mobile_user_modal_header" my-peer-link="profile.id"></h4>
|
<h4 class="mobile_user_modal_header" my-peer-link="profile.id"></h4>
|
||||||
|
@ -49,13 +49,7 @@
|
|||||||
|
|
||||||
<div class="mobile_user_modal_photo_profile_wrap">
|
<div class="mobile_user_modal_photo_profile_wrap">
|
||||||
|
|
||||||
<a href="" ng-click="openPhoto(user.photo.photo_id, {u: user.id})" class="mobile_user_modal_image_wrap pull-left" ng-class="{disabled: !user.photo.photo_id}">
|
<a ng-click="openPhoto(user.photo.photo_id, {u: user.id})" class="mobile_user_modal_image_wrap pull-left" my-peer-photolink="::user.id" img-class="mobile_user_modal_image" no-open="true" watch="true" ng-class="{disabled: !user.photo.photo_id}" ng-disabled="!user.photo.photo_id"></a>
|
||||||
<img
|
|
||||||
class="mobile_user_modal_image"
|
|
||||||
my-load-thumb
|
|
||||||
thumb="userPhoto"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<div class="mobile_user_modal_info_wrap clearfix">
|
<div class="mobile_user_modal_info_wrap clearfix">
|
||||||
<h4 class="mobile_user_modal_header" ng-bind="user | userName"></h4>
|
<h4 class="mobile_user_modal_header" ng-bind="user | userName"></h4>
|
||||||
|
Loading…
Reference in New Issue
Block a user