-
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
Update the Tchap architecture with the Element one, and plug the rooms list to the rooms fetchers #484
Merged
Merged
Update the Tchap architecture with the Element one, and plug the rooms list to the rooms fetchers #484
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fd7bf7d
First part of rebase architecture onto Element and use of Fetchers fo…
bb27ca9
Add missing parts for RoomsViewController menu
27a6f77
Remove invited people from People section
743a585
Fix invitation response
34ebc80
Remove Favorites from People section too
4f5a41c
Add Towncrier files
c695fc0
Remove a useless comment on a function call
a691795
Fix Clear cache
fd71aab
Fix duplicates on lowPriority rooms or direct
c330d36
Hide Element logo on the main storyboard
483a037
Fix background color for Rooms Invite cell
72978bb
Remove useless delegate method
950a313
Update tab bar icon for rooms
5de5f50
Remove useless delegate into AppDelegate
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
Riot/Assets/Images.xcassets/SideMenu/side_menu_notif_icon.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "side_menu_notif_icon.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.6 KB
...Images.xcassets/SideMenu/side_menu_notif_icon.imageset/side_menu_notif_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.37 KB
...ges.xcassets/SideMenu/side_menu_notif_icon.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.8 KB
...ges.xcassets/SideMenu/side_menu_notif_icon.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+61 Bytes
(120%)
Riot/Assets/Images.xcassets/TabBar/tab_rooms.imageset/tab_rooms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+40 Bytes
(110%)
Riot/Assets/Images.xcassets/TabBar/tab_rooms.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-77 Bytes
(92%)
Riot/Assets/Images.xcassets/TabBar/tab_rooms.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ import UIKit | |
import PushKit | ||
|
||
@UIApplicationMain | ||
class AppDelegate: UIResponder, UIApplicationDelegate { | ||
class AppDelegate: UIResponder, UIApplicationDelegate, PushNotificationServiceDelegate { | ||
|
||
// MARK: - Properties | ||
|
||
|
@@ -77,6 +77,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | |
|
||
func applicationDidBecomeActive(_ application: UIApplication) { | ||
self.legacyAppDelegate.applicationDidBecomeActive(application) | ||
|
||
self.appCoordinator.checkMinAppVersionRequirements() | ||
} | ||
|
||
func applicationWillResignActive(_ application: UIApplication) { | ||
|
@@ -106,6 +108,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | |
// MARK: User Activity Continuation | ||
|
||
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { | ||
// return self.appCoordinator.handleUserActivity(userActivity, application: application) | ||
return self.legacyAppDelegate.application(application, continue: userActivity, restorationHandler: restorationHandler) | ||
} | ||
|
||
|
@@ -122,4 +125,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | |
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { | ||
self.legacyAppDelegate.application(application, didReceiveRemoteNotification: userInfo, fetchCompletionHandler: completionHandler) | ||
} | ||
|
||
@objc func pushNotificationService(_ pushNotificationService: PushNotificationService, shouldNavigateToRoomWithId roomId: String) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This may be removed now There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in last commit |
||
self.legacyAppDelegate.lastNavigatedRoomIdFromPush = roomId | ||
// _ = self.appCoordinator.resumeBySelectingRoom(with: roomId) | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think we can remove PushNotificationServiceDelegate here, it is already handled by LegacyAppDelegate
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.
Done in last commit