mirror of https://github.com/NekoX-Dev/NekoX.git
Fix stats / jsdelivr
This commit is contained in:
parent
fcc1d76006
commit
9814510f8e
|
@ -1,8 +1,8 @@
|
|||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
def verName = "7.4.2-rc05"
|
||||
def verCode = 184
|
||||
def verName = "7.4.2-rc06"
|
||||
def verCode = 186
|
||||
|
||||
def officialVer = "7.4.2"
|
||||
def officialCode = 2227
|
||||
|
|
|
@ -18854,7 +18854,16 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
|||
options.add(89);
|
||||
icons.add(R.drawable.menu_info);
|
||||
}
|
||||
if (message.messageOwner.views > 0 && ChatObject.hasAdminRights(getCurrentChat())) {
|
||||
boolean canViewStats = false;
|
||||
if (message.messageOwner.views > 0 || message.messageOwner.forwards > 0) {
|
||||
if (message.messageOwner.fwd_from != null && message.messageOwner.fwd_from.channel_post != 0) {
|
||||
TLRPC.Chat fwdChat = getMessagesController().getChat(message.messageOwner.fwd_from.from_id.channel_id);
|
||||
canViewStats = ChatObject.hasAdminRights(fwdChat);
|
||||
} else if (!message.isForwarded()) {
|
||||
canViewStats = ChatObject.hasAdminRights(getCurrentChat());
|
||||
}
|
||||
}
|
||||
if (canViewStats) {
|
||||
items.add(LocaleController.getString("ViewStats", R.string.ViewStats));
|
||||
options.add(28);
|
||||
icons.add(R.drawable.msg_stats);
|
||||
|
|
|
@ -26,7 +26,7 @@ object SubManager {
|
|||
enable = public?.enable ?: true
|
||||
|
||||
urls = listOf(
|
||||
"http://cdn.jsdelivr.net/gh/nekox-dev/ProxyList/proxy_list",
|
||||
"https://cdn.jsdelivr.net/gh/nekox-dev/ProxyList/proxy_list",
|
||||
"https://nekox-dev.github.io/ProxyList/proxy_list"
|
||||
)
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ function flavor() {
|
|||
done
|
||||
}
|
||||
|
||||
rm -r TMessagesProj/build/outputs/apk
|
||||
|
||||
flavor Full
|
||||
flavor FullAppleEmoji
|
||||
flavor Mini
|
||||
|
|
Loading…
Reference in New Issue