|
|
@ -1877,6 +1877,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) |
|
|
|
var isBroadcast = AppPeersManager.isBroadcast(peerID) |
|
|
|
var isBroadcast = AppPeersManager.isBroadcast(peerID) |
|
|
|
var isMegagroup = AppPeersManager.isMegagroup(peerID) |
|
|
|
var isMegagroup = AppPeersManager.isMegagroup(peerID) |
|
|
|
var isUsualGroup = !isChannel && !isUser |
|
|
|
var isUsualGroup = !isChannel && !isUser |
|
|
|
|
|
|
|
var isSavedMessages = peerID == AppUsersManager.getSelf().id |
|
|
|
|
|
|
|
|
|
|
|
var revocable = !isChannel |
|
|
|
var revocable = !isChannel |
|
|
|
for (var i = 0; revocable && i < selectedMessageIDs.length; i++) { |
|
|
|
for (var i = 0; revocable && i < selectedMessageIDs.length; i++) { |
|
|
@ -1892,6 +1893,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) |
|
|
|
revocable: revocable, |
|
|
|
revocable: revocable, |
|
|
|
isUser: isUser, |
|
|
|
isUser: isUser, |
|
|
|
peerID: peerID, |
|
|
|
peerID: peerID, |
|
|
|
|
|
|
|
isSavedMessages: isSavedMessages, |
|
|
|
isChannel: isBroadcast, |
|
|
|
isChannel: isBroadcast, |
|
|
|
isSupergroup: isMegagroup, |
|
|
|
isSupergroup: isMegagroup, |
|
|
|
isUsualGroup: isUsualGroup |
|
|
|
isUsualGroup: isUsualGroup |
|
|
|