-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebase/element ios 1.11.1 #869
Conversation
Refactor encryption trust level
Deprecate MXLegacyCrypto
…n_icon Fix: Calculation of the frame for a component of a bubble
… suggestion module
…ds_suggestion_list Slash commands suggestion list
…on_emoji Disable accessibility for emojis during verification
…pectCollectionView`
Various bug fixes
…ation_for_oidc Hide deactivate account if the auth property is present on the WK.
…ing_to_3pid_changes Hide Add Email UI according to the 3 pid changes capability
…t_cell_for_oidc Manage account through MAS if available
Open MAS Web page when logging out from other sessions on OIDC authenticated homeservers
…out_confirmation_dialogues Sign out through MAS redirect confirmation alerts
UIWindow *window = [[UIApplication sharedApplication] keyWindow]; | ||
|
||
if (!launchAnimationContainerView && window) | ||
{ | ||
MXLogDebug(@"[AppDelegate] showLaunchAnimation"); | ||
|
||
MXSession *mainSession = self.mxSessions.firstObject; | ||
LaunchLoadingView *launchLoadingView = [LaunchLoadingView instantiateWithStartupProgress:mainSession.startupProgress]; | ||
|
||
launchLoadingView.frame = window.bounds; | ||
[launchLoadingView updateWithTheme:ThemeService.shared.theme]; | ||
launchLoadingView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; | ||
|
||
[window addSubview:launchLoadingView]; | ||
|
||
launchAnimationContainerView = launchLoadingView; | ||
|
||
[MXSDKOptions.sharedInstance.profiler startMeasuringTaskWithName:MXTaskProfileNameStartupLaunchScreen]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on peut récupérer la mise à jour du code et le commenter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je ne pense pas. On n'a pas d'animation de lancement dans Tchap.
- (void)roomInputToolbarView:(MXKRoomInputToolbarView *)toolbarView sendCommand:(NSString *)commandText | ||
{ | ||
// Create before sending the message in case of a discussion (direct chat) | ||
MXWeakify(self); | ||
[self createDiscussionIfNeeded:^(BOOL readyToSend) { | ||
MXStrongifyAndReturnIfNil(self); | ||
|
||
if (readyToSend) { | ||
if (![self sendAsIRCStyleCommandIfPossible:commandText]) | ||
{ | ||
// Display an error for unknown command | ||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil | ||
message:[VectorL10n roomCommandErrorUnknownCommand] | ||
preferredStyle:UIAlertControllerStyleAlert]; | ||
[alert addAction:[UIAlertAction actionWithTitle:[VectorL10n ok] style:UIAlertActionStyleDefault handler:nil]]; | ||
[self presentViewController:alert animated:YES completion:nil]; | ||
} | ||
} | ||
}]; | ||
} | ||
|
||
- (void)roomInputToolbarViewShowSendMediaActions:(MXKRoomInputToolbarView *)toolbarView | ||
{ | ||
NSMutableArray *actionItems = [NSMutableArray new]; | ||
if (RiotSettings.shared.roomScreenAllowMediaLibraryAction) | ||
{ | ||
[actionItems addObject:@(ComposerCreateActionPhotoLibrary)]; | ||
} | ||
if (RiotSettings.shared.roomScreenAllowStickerAction && !self.isNewDirectChat) | ||
{ | ||
[actionItems addObject:@(ComposerCreateActionStickers)]; | ||
} | ||
if (RiotSettings.shared.roomScreenAllowFilesAction) | ||
{ | ||
[actionItems addObject:@(ComposerCreateActionAttachments)]; | ||
} | ||
if (RiotSettings.shared.enableVoiceBroadcast && !self.isNewDirectChat) | ||
{ | ||
[actionItems addObject:@(ComposerCreateActionVoiceBroadcast)]; | ||
} | ||
if (BuildSettings.pollsEnabled && self.displayConfiguration.sendingPollsEnabled && !self.isNewDirectChat) | ||
{ | ||
[actionItems addObject:@(ComposerCreateActionPolls)]; | ||
} | ||
if (BuildSettings.locationSharingEnabled && !self.isNewDirectChat) | ||
{ | ||
[actionItems addObject:@(ComposerCreateActionLocation)]; | ||
} | ||
if (RiotSettings.shared.roomScreenAllowCameraAction) | ||
{ | ||
[actionItems addObject:@(ComposerCreateActionCamera)]; | ||
} | ||
|
||
self.composerCreateActionListBridgePresenter = [[ComposerCreateActionListBridgePresenter alloc] initWithActions:actionItems | ||
wysiwygEnabled:RiotSettings.shared.enableWysiwygComposer | ||
textFormattingEnabled:RiotSettings.shared.enableWysiwygTextFormatting]; | ||
self.composerCreateActionListBridgePresenter.delegate = self; | ||
[self.composerCreateActionListBridgePresenter presentFrom:self animated:YES]; | ||
} | ||
>>>>>>> v1.11.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On peut reprendre le code et le commenter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Le code est présent et commenté.
else if (section == SECTION_TAG_ACCOUNT) | ||
{ | ||
switch(row) { | ||
case ACCOUNT_MANAGE_INDEX: | ||
[self onManageAccountTap]; | ||
break; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A commenter au lieu de supprimer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rajouté dans la Fix PR suivante #872
- (void)onManageAccountTap | ||
{ | ||
NSURL *url = [NSURL URLWithString: self.mainSession.homeserverWellknown.authentication.account]; | ||
if (url) { | ||
[UIApplication.sharedApplication openURL:url options:@{} completionHandler:nil]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A commenter au lieu de supprimer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rajouté dans la Fix PR suivante #872
Fix #865