mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
547963c522
@ -1 +1 @@
|
||||
Subproject commit b8755bd2884d6bf651827c30e00bd0ea318e41a2
|
||||
Subproject commit 501b4afb27745c4813a88ffa28acd901408014e4
|
@ -1 +1 @@
|
||||
Subproject commit d6f9a87d70781e92b95b9344c7d21d921ccc3ae2
|
||||
Subproject commit 748e7e2b1ee5e8976ba873394cbd5e32b61818c7
|
@ -1 +1 @@
|
||||
Subproject commit 44e8c29afe3baa7f5fc434f4a7e83f7ac786644e
|
||||
Subproject commit 6408d85da799ec2af053c4e2883dce3ce6d30f08
|
@ -1 +1 @@
|
||||
Subproject commit e890fb6c88846454c4f69abd8d265a302c0e80e4
|
||||
Subproject commit ee185c4c20ea4384bc3cbf8ccd8705c904154abb
|
@ -323,8 +323,8 @@ public func searchMessages(account: Account, location: SearchMessagesLocation, q
|
||||
|> mapToSignal { result, additionalResult -> Signal<(SearchMessagesResult, SearchMessagesState), NoError> in
|
||||
return account.postbox.transaction { transaction -> (SearchMessagesResult, SearchMessagesState) in
|
||||
var additional: SearchMessagesPeerState? = mergedState(transaction: transaction, state: state?.additional, result: additionalResult)
|
||||
if state?.additional == nil, case .general = location {
|
||||
let secretMessages = transaction.searchMessages(peerId: nil, query: query, tags: nil)
|
||||
if state?.additional == nil, case let .general(tags) = location {
|
||||
let secretMessages = transaction.searchMessages(peerId: nil, query: query, tags: tags)
|
||||
var readStates: [PeerId: CombinedPeerReadState] = [:]
|
||||
for message in secretMessages {
|
||||
if let readState = transaction.getCombinedPeerReadState(message.id.peerId) {
|
||||
|
@ -102,14 +102,16 @@ typedef NS_ENUM(int32_t, OngoingCallDataSavingWebrtc) {
|
||||
- (void)setOnIsMirroredUpdated:(void (^ _Nullable)(bool))onIsMirroredUpdated;
|
||||
#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
|
||||
- (void)setVideoContentMode:(CALayerContentsGravity _Nonnull )mode;
|
||||
- (void)setForceMirrored:(bool)forceMirrored;
|
||||
#endif
|
||||
@end
|
||||
|
||||
@interface OngoingCallThreadLocalContextVideoCapturer : NSObject
|
||||
|
||||
- (instancetype _Nonnull)init;
|
||||
- (instancetype _Nonnull)initWithDeviceId:(NSString * _Nonnull)deviceId;
|
||||
|
||||
- (void)switchVideoInput:(bool)isFront;
|
||||
- (void)switchVideoInput:(NSString * _Nonnull)deviceId;
|
||||
- (void)setIsVideoEnabled:(bool)isVideoEnabled;
|
||||
|
||||
- (void)makeOutgoingVideoView:(void (^_Nonnull)(UIView<OngoingCallThreadLocalContextWebrtcVideoView> * _Nullable))completion;
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#ifndef WEBRTC_IOS
|
||||
#import "platform/darwin/VideoMetalViewMac.h"
|
||||
#define GLVideoView VideoMetalView
|
||||
#import "platform/darwin/GLVideoViewMac.h"
|
||||
#define UIViewContentModeScaleAspectFill kCAGravityResizeAspectFill
|
||||
#define UIViewContentModeScaleAspect kCAGravityResizeAspect
|
||||
|
||||
@ -142,18 +142,23 @@
|
||||
@implementation OngoingCallThreadLocalContextVideoCapturer
|
||||
|
||||
- (instancetype _Nonnull)init {
|
||||
return [self initWithDeviceId:@""];
|
||||
}
|
||||
|
||||
- (instancetype _Nonnull)initWithDeviceId:(NSString * _Nonnull)deviceId {
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
_interface = tgcalls::VideoCaptureInterface::Create();
|
||||
_interface = tgcalls::VideoCaptureInterface::Create(deviceId.UTF8String);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
- (void)dealloc {
|
||||
}
|
||||
|
||||
- (void)switchVideoInput:(bool)isFront {
|
||||
_interface->switchToDevice(isFront ? "" : "back");
|
||||
- (void)switchVideoInput:(NSString * _Nonnull)deviceeId {
|
||||
_interface->switchToDevice(deviceeId.UTF8String);
|
||||
}
|
||||
|
||||
- (void)setIsVideoEnabled:(bool)isVideoEnabled {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit b906b5a955f1e6e195cb91c4513d4cb7b3620ea6
|
||||
Subproject commit d8b106c94e5a5e20020ad862d835e921d4f102d9
|
2
third-party/libvpx/libvpx
vendored
2
third-party/libvpx/libvpx
vendored
@ -1 +1 @@
|
||||
Subproject commit 2d20a42ab60f8fed37612361f2ea776d0bc7ca1a
|
||||
Subproject commit c413c8f18eb1932b100850505031980e27160d5f
|
Loading…
x
Reference in New Issue
Block a user