Fix stats / jsdelivr

This commit is contained in:
世界 2021-02-09 19:47:00 +08:00
parent fcc1d76006
commit 9814510f8e
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
4 changed files with 15 additions and 4 deletions

View File

@ -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

View File

@ -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);

View File

@ -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"
)

View File

@ -7,6 +7,8 @@ function flavor() {
done
}
rm -r TMessagesProj/build/outputs/apk
flavor Full
flavor FullAppleEmoji
flavor Mini