Commit graph

230 commits

Author SHA1 Message Date
manuroe
ed62daabd6 Merge remote-tracking branch 'origin/master' into sdk_extensions 2017-12-06 09:58:00 +01:00
manuroe
ff291754e8 Crypto: BF: The share key dialog can appear with a 'null' device (#1683)
Make sure we download requester device keys before showing the share dialog.
Also, add "You added a new device '%@', which is requesting encryption keys." string
2017-12-05 15:47:39 +01:00
manuroe
243637bec2 Merge remote-tracking branch 'origin/master' into sdk_extensions 2017-12-04 10:50:45 +01:00
Giom Foret
108b8a5426 Code cleaning 2017-11-28 10:18:44 +01:00
Giom Foret
ce54fc4a32 fix compilation errors 2017-11-27 12:38:21 +01:00
Giom Foret
740711dd54 AppDelegate: Add logs to know how long we wait for the protected data 2017-11-27 12:14:06 +01:00
giomfo
12516e6a0d
Merge pull request #1671 from vector-im/use_frameworks_compatible
Make code compatible with `!use_frameworks` in Podfile
2017-11-27 09:55:17 +01:00
Giom Foret
9af7a2b445 Code cleaning 2017-11-24 17:30:55 +01:00
Giom Foret
c10fb80e3e Should fix spontaneous logout 2017-11-24 17:16:47 +01:00
manuroe
ee20998d3a Matrix SDK extensions: use new 'MatrixSDK/JingleCallStack' pod 2017-11-24 16:28:48 +01:00
manuroe
45f07ab466 Make code compatible with !use_frameworks in Podfile 2017-11-23 16:09:19 +01:00
manuroe
b81ce6a9a1 Crypto: Key sharing: Move the check of incoming key requests so that we can detect them at app startup.
https://github.com/vector-im/riot-meta/issues/121

This is now required because, with https://github.com/matrix-org/matrix-ios-sdk/pull/414, key requests can be available when app starts.
2017-11-16 14:47:23 +01:00
Giom Foret
dd4d1a4858 Should fix spontaneous logout.
Set the App Group Id in `application:willFinishLaunchingWithOptions:` method instead of the `main` function of an iOS app
2017-11-15 15:49:54 +01:00
manuroe
1b7b453465 Crypto: Key sharing dialog for incoming room key requests
Follow Giom's review advice
2017-11-15 14:28:59 +01:00
manuroe
2b765341ea Crypto: Key sharing dialog for incoming room key requests
Manage ignore requests
2017-11-15 12:25:00 +01:00
manuroe
6f303b0554 Crypto: Add key sharing dialog for incoming room key requests 2017-11-14 18:21:01 +01:00
Giom Foret
452d878440 Bug Fix - The Call View Controller is displayed whereas the call has been cancelled 2017-10-27 15:35:43 +02:00
Giom Foret
6bb7e258dd Fix App crash 2017-10-23 17:34:42 +02:00
Giom Foret
db689c1c35 Bug Fix - Bg Sync loop 2017-10-23 16:58:55 +02:00
manuroe
cd428b83aa Logs app extensions to console.log 2017-10-20 14:57:51 +02:00
Giom Foret
6e0750a70b Add logs to investigate crash on bg sync 2017-10-20 14:23:08 +02:00
Giom Foret
2934443034 Buf Fix - Pushkit - a message containing “20%ing” into “20ng” in the notif
#1594
2017-10-19 16:25:59 +02:00
Giom Foret
b8cc3324cd PushKit - Enhancement
-Don't forget the notifications retrieved during an initial sync in background
2017-10-19 16:09:50 +02:00
manuroe
5b93b13190 Callkit: Show the Riot icon (in B&W) on the system call screen 2017-10-19 10:03:23 +02:00
Giom Foret
fb65be28fc PushKit - Enhancement
Don't forget notifications lost while the device was offline
2017-10-18 19:18:14 +02:00
Giom Foret
baf2f6d7d3 Pushkit - Enhancement
Add sanity check
2017-10-18 14:10:08 +02:00
Giom Foret
18b700c7eb Pushkit - Enhancement
Handle the received push notifications at the end of the background sync in order to:
- ignore redacted events
- ignore the events read on another device
- improve the call invites handling when callkit is disabled.
2017-10-18 11:58:24 +02:00
manuroe
3b415a224f Call: on incoming call, if CallKit is enabled, do not show the incomingCallVC.
It creates a strange screens mix between the system call screen and the incomingCallVC.
2017-10-18 10:19:05 +02:00
Giom Foret
68bac16026 Bug Fix - Local notifications body 2017-10-16 14:58:38 +02:00
Giom Foret
2a9906c003 Bug Fix - Local notifications body
+ Fix #1576: Notifs for named 1:1s don't show the room name, only the sender
+ Remove the room alias from the room name
+ Hide the room name when it is equal to the sender name
+ Consider the actual event date
2017-10-16 14:43:07 +02:00
Giom Foret
c117ee7531 Bug Fix - Notification explosion on initial sync
Add sanity check: Do not display local notifications during the initial sync.
2017-10-13 17:07:46 +02:00
Giom Foret
8b78457ff8 Do not display the local notification on push when the room is in mentions only mode.
Only the highlighted push are displayed for this room.
2017-10-12 14:46:20 +02:00
Giom Foret
3b26da7414 Do not display the local notification on push when the room is in mentions only mode.
Only the highlighted push are displayed for this room.
2017-10-12 11:42:10 +02:00
Giom Foret
bd20877b65 Merge branch 'develop' into callkit
# Conflicts:
#	Riot/AppDelegate.m
2017-10-09 16:23:18 +02:00
manuroe
a70aa5b4d6 A possible patch to avoid the app being killed in background on iOS11 (https://github.com/vector-im/riot-ios/issues/1522) 2017-10-09 11:29:53 +02:00
manuroe
3ef952307b Add log for https://github.com/vector-im/riot-ios/issues/1522 2017-10-06 18:05:54 +02:00
manuroe
86d4765fd8 Log applicationDidReceiveMemoryWarning at AppDelegate level 2017-10-05 09:36:40 +02:00
Giom Foret
7801cabe32 Merge branch 'master' into callkit
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
#	Riot/AppDelegate.m
#	Riot/ViewController/SettingsViewController.m
2017-10-04 13:04:21 +02:00
Giom Foret
c338553e2c Bug Fix - Some rooms have gone nameless after upgrade
https://github.com/matrix-org/riot-ios-rageshakes/issues/388
2017-10-03 18:53:05 +02:00
Giom Foret
8be8c8b1fd Fix iOS11 disruption
- RoomViewController, RoomDetailsVC, ContactDetailsVC: fix header layout.
- Use UIScrollView+MatrixKit category to handle the adjusted content inset which is not defined before iOS 11.
2017-09-27 09:26:34 +02:00
Giom Foret
f8e9f24617 Fix compilation error
@available(iOS 11.0, *))  requires Xcode 9
2017-09-22 10:39:50 +02:00
manuroe
819f407ae1 BF: [iOS11] "Smart [colors] Invert" renders badly in the app
https://github.com/vector-im/riot-ios/issues/1524

- the app does its own dark theme and prevents the OS from automatically revert the colors in the app
- there are 3 choices on iOS11 for the Riot theme: "auto", "light", "dark". "auto" uses the system settings
2017-09-21 15:29:46 +02:00
Giom Foret
3ff23f83ae Pushkit: Remove APNS use.
Use new MXKAccount API to handle push token and settings.
- add format: 'event_id_only' to the data dict when you add the pusher
- use the following app ID: im.vector.app.ios.voip.prod
2017-09-19 16:06:44 +02:00
Giom Foret
6c5c162aba Merge branch 'develop' into callkit 2017-09-19 09:50:21 +02:00
manuroe
dea81dadf4 Merge pull request #1511 from vector-im/widget_manager_2
Show the "Integrations Manager" into a webview
2017-09-15 16:55:28 +02:00
manuroe
0facbaec9e Modular integrations UI: Clear Modular data on logout 2017-09-15 15:35:27 +02:00
Giom Foret
e4bf4f7dfa Handle the room display name and its avatar at the room summary level.
- Update the room display name and its avatar url when the Room Summary is updated on state events change (see `[session: updateRoomSummary: withStateEvents:]`).
- Store the riot display room name and its avatar url in the Room Summary.
- Add a new category `MXRoomSummary+Riot` to handle avatar display.

TODO: Increase file store version in `MXFileStore.h`.
2017-09-14 16:00:50 +02:00
Giom Foret
0cc96dbbbd Pushkit: unregister for all remote notifications received via Apple Push Notification service. 2017-09-13 15:15:57 +02:00
Denis Morozov
8eb3204679 Fix push registration process 2017-09-10 16:41:50 +03:00
Giom Foret
b0c4bcd02a PushKit: local notifications handling
Support the account settings: `showDecryptedContentInNotifications` value.
2017-09-08 15:32:55 +02:00
Giom Foret
247d5c529d Merge branch 'develop' into callkit 2017-09-08 12:42:58 +02:00
Giom Foret
21ba0d9ebf Pushkit Support
- Bug Fix - Regression: incoming video call is ignored when the app is backgrounded.
Do not remove the call observer at each session state change. A call observer is created as soon as a session is `StoreDataReady`, it is used until all the sessions are closed. We let the MXCallManager delay the call invite handling when the concerned session is syncing (see https://github.com/matrix-org/matrix-ios-sdk/pull/366).

- Bug Fix - Regression: app crashes on logout (see wrong use of `callEventsListeners`).
2017-09-07 19:28:38 +02:00
Giom Foret
e52d635009 Switch the loading animation for iOS to be RIOT.IM branded.
Remove the grey spinner under this animation.
2017-09-06 18:48:47 +02:00
Giom Foret
0008c88386 Pushkit support: Start a matrix session for each enabled accounts even if the app is in background.
AppDelegate -  `initMatrixSession`: Start a matrix session for each enabled accounts even if the app is in background.
Indeed we call [accountManager prepareSessionForActiveAccounts] even in background mode, The session is automatically paused when the running state is detected if the application is still in background.
- Define a notification listener block for each session. This block is used during all the session life to display the local notifications when the app is backgrounded.
- The local notifications are handled by using the background sync mechanism (defined at MXKAccount level).
- Multiple accounts are handled.
2017-09-06 16:59:12 +02:00
manuroe
9b993d421d Fix compilation issue 2017-09-04 16:26:41 +02:00
manuroe
c0ba516a2e Merge remote-tracking branch 'origin/pr/1458' into callkit
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
#	Riot/AppDelegate.m
#	Riot/ViewController/SettingsViewController.m
2017-09-04 15:57:37 +02:00
manuroe
c76995e863 Merge branch 'callkit' into sirikit_new 2017-08-31 17:16:51 +02:00
manuroe
35927c50f3 CallKit branch: fixed compilation issues 2017-08-31 16:20:32 +02:00
manuroe
1a026a29f1 Merge remote-tracking branch 'origin/develop' into callkit
# Conflicts:
#	Riot/AppDelegate.m
2017-08-31 15:58:28 +02:00
manuroe
5ce098d52d CallKit branch: fixed compilation issues 2017-08-31 15:51:05 +02:00
manuroe
d2cf99b71a Merge branch 'develop' into incoming_call_screen 2017-08-31 14:04:53 +02:00
manuroe
2886daf4c6 Jitsi widget: Add notices for jitsi widget in rooms histories 2017-08-30 17:37:14 +02:00
manuroe
ccb1a7e5bf Merge pull request #1484 from morozkin/callkit_notif
Start background task when handling call intent in the background
2017-08-30 10:54:49 +02:00
Denis
28017b3dae Set local notification sound 2017-08-29 11:55:45 +03:00
Denis
b444f6639a Don't show display notifications for call invites when CallKit is active 2017-08-29 11:55:32 +03:00
Denis Morozov
7c16ac0647 Add content to notification body connected with image 2017-08-29 11:50:22 +03:00
Denis
6aa49259ed Start background task when handling call intent in the background 2017-08-28 18:14:10 +03:00
Denis Morozov
f3d03d0b31 Fix issue #1480 2017-08-27 16:51:27 +03:00
Denis Morozov
d53945e74b Remove incomingCallNotification property 2017-08-27 16:43:42 +03:00
Denis Morozov
3ab16243da Change application group id 2017-08-26 15:34:51 +03:00
giomfo
3bb1a72402 Merge pull request #1475 from morozkin/callkit_notif
Add background mode handling
2017-08-25 18:28:15 +02:00
Giom Foret
7daa966116 Merge branch 'master' into callkit
# Conflicts:
#	Riot/AppDelegate.m
#	Riot/Assets/en.lproj/Vector.strings
#	Riot/ViewController/SettingsViewController.m
2017-08-25 16:48:13 +02:00
Denis Morozov
f92f20e9c4 Add screen for incoming calls 2017-08-25 03:02:29 +03:00
Giom Foret
9284ff0fca Improvement - Application group identifier
Use the property `applicationGroupIdentifier` of the MXSDKOptions sharedInstance.
2017-08-24 15:18:23 +02:00
Denis Morozov
d42e8909a3 Add background mode handling 2017-08-24 14:03:05 +03:00
Denis Morozov
0c901fe0c5 Improvements in notification registration flow 2017-08-23 19:07:14 +03:00
Denis Morozov
8989ef46a0 Fix remote notifications registration even if user hasn't provide access 2017-08-22 19:34:50 +03:00
Denis Morozov
9a40b43279 Add Intents handling 2017-08-22 16:02:16 +03:00
Denis Morozov
fdec4fb331 Check available notification types before starting register on PushKit notifications 2017-08-22 12:05:28 +03:00
Denis Morozov
791fc112c0 Move code for updating icon badge number to completion block 2017-08-22 11:10:35 +03:00
Denis Morozov
7db33e6a47 Update app icon badge number on each received push notification 2017-08-22 10:48:59 +03:00
Denis Morozov
f144413a7b Replace remote notifications with PushKit notifications 2017-08-21 13:28:05 +03:00
manuroe
c21c40031a Merge pull request #1449 from vector-im/jitsi_widget
Integrating Jitsi into mobile apps
2017-08-18 13:26:30 +02:00
manuroe
e593d0c45d Jitsi widget: polishing 2017-08-18 11:40:56 +02:00
Giom Foret
3d43149c53 Apply the actual application group: "group.im.vector" 2017-08-16 18:35:32 +02:00
manuroe
f13baec441 Merge remote-tracking branch 'origin/develop' into jitsi_widget
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
2017-08-16 17:14:20 +02:00
Giom Foret
5f5acf472b Dark Theme - Improvement
Force the background color of the fake view controller displayed when there is no details.
2017-08-14 22:35:16 +02:00
Giom Foret
ed600e3ab0 Dark Theme - Improvement
Force the background of the default view controller displayed in landscape when no room is selected.
2017-08-14 15:57:23 +02:00
Giom Foret
e9bc00959d Enable Dark theme
TODO:
- fix the app freeze when user changes the app theme.
2017-08-11 16:56:09 +02:00
manuroe
5b608e01a6 Jitsi widget: Display the hangup button when we are back-to-app 2017-08-11 14:59:05 +02:00
manuroe
75bb54fb92 Jitsi widget: Manage "Back To App" 2017-08-11 14:18:10 +02:00
manuroe
87546112da Jitsi widget: Add WidgetManager and Widget, generic classes to manage scalar widgets 2017-08-04 13:07:04 +02:00
Denis Morozov
fcf2948bc1 Set App Group ID to MXSDKOptions singleton instance 2017-08-04 10:59:46 +03:00
manuroe
505b6414a5 Add support of matrix.to links to users
BF: the app doesn't do anything sensible with matrix.to user id hyperlinks #1410
2017-07-25 16:08:24 +02:00
Giom Foret
887d9dee14 Prepare Dark Theme
Remove the [UIApplication statusBarHidden] use (deprecated since iOS 9).
Use the default UIViewController-based status bar system.

Hide the user interface theme option in Settings.

https://github.com/vector-im/riot-meta/issues/22
2017-07-21 17:22:34 +02:00
manuroe
cdb2fe99a3 Language settings: Store it in NSUserDefaults (@"appLanguage") 2017-07-21 11:08:33 +02:00
Giom Foret
cc0478c4ec Remove MXKAlert class use.
UIAlertController is directly used.
2017-07-14 16:41:25 +02:00
manuroe
7b6eeed764 GA: Disable GA in debug as it pollutes stats and crashes 2017-06-30 13:37:36 +02:00
manuroe
725cf68107 Crash report: Do not loose what the user typed when debackgrounding the app 2017-06-29 17:45:54 +02:00
manuroe
3026c3df60 Crash report: Do not loose what the user typed when debackgrounding the app 2017-06-29 17:33:08 +02:00
manuroe
8fd5ec6adc Merge pull request #1332 from morozkin/callkit_v1
Add CallKit support
2017-06-21 13:34:57 +02:00
Denis Morozov
f523a700ef Return inline blocks and improve imports 2017-06-21 13:02:49 +03:00
Denis Morozov
8309e6b612 Small fix in condition 2017-06-20 23:40:15 +03:00
Denis Morozov
e058ade013 Add CallKit support 2017-06-20 23:19:24 +03:00
Denis Morozov
4894c57c8f Fix crash on decline button 2017-06-20 19:36:52 +03:00
manuroe
5d24b5b400 Apply renaming of MXDefaultBackgroundModeHandler to MXUIKitBackgroundModeHandler 2017-06-16 14:35:15 +02:00
manuroe
765be91f0e Use UIKit BackgroundTask for handling background tasks in the SDK 2017-06-14 17:37:22 +02:00
manuroe
48fa03bbcb UX rework: do not automatically come back to the home tab when opening a permalink
This fixes https://github.com/vector-im/riot-meta/issues/54#issuecomment-300428202
2017-06-08 14:27:38 +02:00
manuroe
1dafca03ea Merge remote-tracking branch 'origin/ux_rework' into develop
# Conflicts:
#	Riot/AppDelegate.m
#	Riot/ViewController/ContactsTableViewController.m
#	Riot/ViewController/RoomViewController.m
2017-06-07 11:19:25 +02:00
giomfo
6b5fc69e3a Merge pull request #1248 from morozkin/callvc_memory
Fix dangling in the memory CallViewController
2017-06-06 13:17:06 +02:00
Denis
cbcae18c3c Remove redundant nil operations 2017-06-05 16:30:35 +03:00
Denis Morozov
fbc69f51c6 Fix dangling in the memory CallViewController 2017-06-04 02:39:00 +03:00
Giom Foret
b16e77e551 Bug Fixed: Infinite loading screen when homeserver not reachable
https://github.com/vector-im/riot-ios/issues/1223
2017-05-12 15:20:56 +02:00
Giom Foret
c3a95b7544 Bug Fix: The Riot icon is displayed in full screen in landscape orientation.
No way to do anything
2017-04-21 16:28:57 +02:00
Giom Foret
2ccf76d78d Missed notifications handling:
- Apply API changes in matrixKit
2017-04-18 16:20:55 +02:00
Giom Foret
4947224051 Add the badge value for Home tab bar item.
Fix the missed discussion count
2017-04-18 15:55:51 +02:00
Giom Foret
50ddff54dc Import RageShakeManager.h and RiotDesignValues.h in App Delegate header 2017-04-07 11:52:53 +02:00
Giom Foret
a7c843d86d Merge branch 'develop' into ux_rework 2017-03-31 17:37:50 +02:00
Giom Foret
2d178343b1 Prepare UX rework
- Hide Back button title in details view controller
2017-03-28 18:17:14 +02:00
Giom Foret
2a8ab65d00 Prepare UX Rework
- Display contact details in the secondary view controller of the split view controller.
- Fix issues on secondary view controller handling.
2017-03-28 17:26:50 +02:00
manuroe
76d9048b11 Room summary: Need to reset the EventFormatter after a clear cache
Else, this is MXKEventFormatter that is used
2017-03-27 10:02:26 +02:00
Giom Foret
3a9465320a Prepare UX Rework:
- Fix Tab Bar display
- Adjust (+) icon display
2017-03-24 17:19:55 +01:00
Giom Foret
035f4c330a Prepare UX rework:
- Use a tab bar controller in the master view controller of the split view controller.
2017-03-23 17:48:05 +01:00
manuroe
bf7240098e Merge remote-tracking branch 'origin/master' into room_summary 2017-03-23 16:24:50 +01:00
Giom Foret
17db42d093 Define the media cache version at the application level 2017-03-23 11:49:58 +01:00
manuroe
0cb82452b5 Room summary: MXSession.ignoreProfileChangesDuringLastMessageProcessing is gone 2017-03-21 09:06:18 +01:00
manuroe
e2fe9df08f Room summary: MXKSessionRecentsDataSource.eventFormatter has been removed. Overide the EventFormatter by another mean 2017-03-17 16:46:44 +01:00
Giom Foret
fc1167793c Bug Fix - [Tablet / split mode] The room member details page is not popped after signing out
#1062
2017-03-14 17:25:46 +01:00
giomfo
7860d46996 Rebranding: replace Vector by Riot everywhere in the git and github repos
- Rename VectorDesignValues with RiotDesignValues
2017-03-08 16:14:41 +01:00
giomfo
568af33fdf Rebranding: replace Vector by Riot everywhere in the git and github repos
- Rename "Vector" directory with "Riot"
2017-03-08 11:08:03 +01:00
Renamed from Vector/AppDelegate.m (Browse further)