mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-30 21:19:33 +00:00
Update to 8.0.0 (2406)
This commit is contained in:
parent
ab221dafad
commit
368822d20f
191 changed files with 12004 additions and 2919 deletions
|
|
@ -1035,7 +1035,7 @@ public class ChatObject {
|
|||
int selfId = getSelfId();
|
||||
VoIPService service = VoIPService.getSharedInstance();
|
||||
TLRPC.TL_groupCallParticipant selfParticipant = participants.get(selfId);
|
||||
canStreamVideo = selfParticipant != null && selfParticipant.video_joined;
|
||||
canStreamVideo = true;//selfParticipant != null && selfParticipant.video_joined || BuildVars.DEBUG_PRIVATE_VERSION;
|
||||
boolean allowedVideoCount;
|
||||
boolean hasAnyVideo = false;
|
||||
activeVideos = 0;
|
||||
|
|
@ -1243,7 +1243,7 @@ public class ChatObject {
|
|||
}
|
||||
}
|
||||
|
||||
public void toggleRecord(String title) {
|
||||
public void toggleRecord(String title, int type) {
|
||||
recording = !recording;
|
||||
TLRPC.TL_phone_toggleGroupCallRecord req = new TLRPC.TL_phone_toggleGroupCallRecord();
|
||||
req.call = getInputGroupCall();
|
||||
|
|
@ -1252,6 +1252,11 @@ public class ChatObject {
|
|||
req.title = title;
|
||||
req.flags |= 2;
|
||||
}
|
||||
if (type == 1 || type == 2) {
|
||||
req.flags |= 4;
|
||||
req.video = true;
|
||||
req.video_portrait = type == 1;
|
||||
}
|
||||
currentAccount.getConnectionsManager().sendRequest(req, (response, error) -> {
|
||||
if (response != null) {
|
||||
final TLRPC.Updates res = (TLRPC.Updates) response;
|
||||
|
|
@ -1434,6 +1439,10 @@ public class ChatObject {
|
|||
return chat instanceof TLRPC.TL_channel || chat instanceof TLRPC.TL_channelForbidden;
|
||||
}
|
||||
|
||||
public static boolean isChannelOrGiga(TLRPC.Chat chat) {
|
||||
return (chat instanceof TLRPC.TL_channel || chat instanceof TLRPC.TL_channelForbidden) && (!chat.megagroup || chat.gigagroup);
|
||||
}
|
||||
|
||||
public static boolean isMegagroup(TLRPC.Chat chat) {
|
||||
return (chat instanceof TLRPC.TL_channel || chat instanceof TLRPC.TL_channelForbidden) && chat.megagroup;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue