Commit graph

419 commits

Author SHA1 Message Date
manuroe
b64b5767fb Make use of MXRoom.roomId and MXRoom.summary instead of MXRooms.state 2018-07-16 22:30:55 +02:00
manuroe
7af86d9f9d MXRoomState: Apply new MXRoomMembers property 2018-07-12 00:19:48 +02:00
SBiOSoftWhare
1ad1ec0a6e Fix showDecryptedContentInNotifications settings option not migrated correctly from MXKAccount 2018-07-03 10:31:14 +02:00
SBiOSoftWhare
8221ebfc67 Now store showDecryptedContentInNotifications settings option in UserDefaults instead for MXKAccount in order to keep this information when the user logout. Fix issue #1914. 2018-07-02 14:41:55 +02:00
manuroe
dcc1435d82 Crypto: Add telemetry for events unable to decrypt (UTDs)
Add a dispatch method
2018-06-29 07:50:06 +02:00
manuroe
b6ce79303a Crypto: Add telemetry for events unable to decrypt (UTDs)
#1894
2018-06-29 07:36:35 +02:00
manuroe
9603e0a878 Analytics: Improve comments 2018-06-27 18:11:04 +02:00
manuroe
7a6b039af7 Analytics: Make it implement MXAnalyticsDelegate to track performance stats 2018-06-27 17:59:06 +02:00
manuroe
4528f510b0 Analytics: Move code from AppDelegate to a dedicated class: Analytics 2018-06-27 10:02:08 +02:00
SBiOSoftWhare
1fe6e98b94
Merge pull request #1895 from vector-im/fix_account_deactivation_completion
Fix account deactivation completion
2018-06-01 16:19:51 +02:00
SBiOSoftWhare
1f7c28fc6b Update logout method in AppDelegate, add possibility to send or not logout request to home server 2018-06-01 16:07:42 +02:00
SBiOSoftWhare
169e7ae885 Fix GDPR consent alert not shown after account creation 2018-06-01 09:46:11 +02:00
SBiOSoftWhare
87f2c97aee
Merge pull request #1886 from vector-im/fix_gdpr_consent_403_alert
Do not display error alert when receiving GDPR Consent not given
2018-05-31 19:06:33 +02:00
SBiOSoftWhare
400d188dec
Merge pull request #1885 from vector-im/riot_1883
GDPR consent screen could not be closed
2018-05-31 19:06:09 +02:00
SBiOSoftWhare
43c83848d0 Do not display default error alert when receiving GDPR Consent not given error 2018-05-31 18:39:15 +02:00
SBiOSoftWhare
96e48b26e1 Put close action to left in navigation bar of GDPR consent screen 2018-05-31 17:33:20 +02:00
SBiOSoftWhare
52c21a6543 Factorization of data user clear on logout. Reuse it for account deactivation. 2018-05-30 17:04:58 +02:00
SBiOSoftWhare
b8db14dadc Add GDPR consent display when GDPR consent not given error is received. 2018-05-23 17:01:18 +02:00
manuroe
121aeb9041 Send Stickers: Plug the sticker picker widget with the room datasource to send a sticker
#1860
2018-05-07 18:04:32 +02:00
manuroe
367e8811a0
Merge pull request #1835 from pixlwave/master
Use existing message.mp3 for notification sounds.
2018-04-24 10:21:38 +02:00
giomfo
0008b8c1ab Bug Fix - Crash on URL like https://riot.im/#/app/register?hs_url=...
Display an activity indicator when the logout is in progress

vector-im/riot-ios#1838
2018-04-17 23:26:26 +02:00
giomfo
6e6c0b77e4 Bug Fix - Crash on URL like https://riot.im/#/app/register?hs_url=...
Prompt the user before logging out in case of click on register link.

vector-im/riot-ios#1838
2018-04-17 21:39:31 +02:00
giomfo
0fb65bc431 Bug Fix - Crash on URL like https://riot.im/#/app/register?hs_url=...
Ignore register link without session id.

vector-im/riot-ios#1838
2018-04-13 23:33:53 +02:00
giomfo
715279e565 Bug Fix - Crash on URL like https://riot.im/#/app/register?hs_url=...
Fix here the crash
Another commit will be done to prevent logging out on unexpected register url

https://github.com/vector-im/riot-ios/issues/1838
2018-04-13 20:14:44 +02:00
Doug
7a17715fbe Use existing message.mp3 for notification sounds. 2018-04-08 15:00:33 +01:00
giomfo
e5bdce563e Render sticker events in the timeline #1819
Prepare sticker rendering
2018-03-30 12:04:50 +02:00
manuroe
4f2fb93782 Fix screen flashing at startup (#1798)
Ugly fix to give time to load and show the launching animated screen before MXContactManager freezes the UI thread
2018-03-08 18:23:52 +01:00
manuroe
a19ae3d532 Fix compilation: Follow changes made by https://github.com/matrix-org/matrix-ios-sdk/pull/458 2018-02-27 13:35:20 +01:00
manuroe
eb036055d3
Merge pull request #1783 from vector-im/riot_1782
BF: e2e devices list not shown
2018-02-26 10:31:36 +01:00
manuroe
d91e2f95b1
Merge pull request #1777 from joeywatts/quick-reply
Add support for interactive notifications (fixes #625)
2018-02-26 08:56:25 +01:00
manuroe
b7b282e021 BF: e2e devices list not shown (#1782) 2018-02-23 17:16:48 +01:00
Joey Watts
31e3501512 Correctly acquire RoomDataSource instance 2018-02-23 08:58:35 -05:00
Joey Watts
21ec4c698d Use RoomDataSource to send message, send failure notification on error
Signed-off-by: Joey Watts <joey.watts.96@gmail.com>
2018-02-23 01:45:33 -05:00
Joey Watts
125aecb271 Fix quick reply on encrypted notifications 2018-02-19 23:19:24 -05:00
Joey Watts
6a90ff0495 Add support for interactive notifications 2018-02-19 22:55:00 -05:00
Giom Foret
c1d5038e5e Groups: Display flair for users in room history.
Force the matrix session to refresh the cached data related to the publicised groups of the users when the application enters in foreground

vector-im/riot-meta#118
2018-02-04 17:13:44 +01:00
manuroe
e41d71b5bd
Merge pull request #1753 from vector-im/piwik2
Replace Google Analytic by Matomo(Piwik)
2018-02-02 14:56:19 +01:00
manuroe
b2cd694533 Piwik: Fix screen tracking 2018-01-31 18:20:11 +01:00
manuroe
0bd7c1117d Piwik: our PR on Piwik now just need to be released 2018-01-30 08:36:52 +01:00
manuroe
76aa765dc2 Piwik: our PR on Piwik now just need to be released 2018-01-30 08:35:29 +01:00
manuroe
ce18f02301 Piwik: Remove @TODO 2018-01-29 16:30:20 +01:00
manuroe
75f6d94c55 Piwik: Use it for analytics 2018-01-29 15:26:44 +01:00
Evan Tang
21a716d610 When you realize there's more than one cancel button 2018-01-18 20:46:25 -06:00
manuroe
a15533b979 Remove Google Analytics 2018-01-05 10:02:10 +01:00
manuroe
4cb68c7619 Widgets: Make sure we have a scalar token before opening one (#1723).
Make the build of the true widget URL asynchronous and build it only when necessary.
2018-01-04 12:25:32 +01:00
manuroe
e24ccbdfc7 Merge remote-tracking branch 'origin/master' into develop 2018-01-03 15:06:18 +01:00
manuroe
8564656841 Fix build 2018-01-03 14:59:01 +01:00
manuroe
6f15fb03fe Missing Push Notifications (#1696): Show a notification even if the app fails to sync with its hs to get all data.
BF: Return a string
(cherry picked from commit 30125eaf4b)
2018-01-03 11:29:17 +01:00
manuroe
75bb6807f8 Push notifications: UILocalNotification.fireDate is useless to dedup notifications. Remove it
(cherry picked from commit 7fc23665b8)
2018-01-03 11:29:09 +01:00
manuroe
86eff609df Push notifications: Add fireDate to UILocalNotification in order to retrieve them afterwards.
It seems to be mandatory to make `[[UIApplication sharedApplication] scheduledLocalNotifications]` non empty

(cherry picked from commit 4e91844403)
2018-01-03 11:29:09 +01:00
manuroe
51b3a22946 Push notifications: More logs to track duplicated notifications
(cherry picked from commit cf066a7e07)
2018-01-03 11:29:09 +01:00
manuroe
c09171d62f AppDelegate: Enable log to file earlier
Try another technique to save logs to files earlier.
The goal is to track unexpected app startup cycle like in https://riot.im/bugreports/listing/2017-12-29/081732/console.1.log.gz (https://github.com/matrix-org/riot-ios-rageshakes/issues/797) and https://riot.im/bugreports/listing/2017-12-31/133345/console.log.gz (https://github.com/matrix-org/riot-ios-rageshakes/issues/805).

(cherry picked from commit 879f42782a)

# Conflicts:
#	Riot/AppDelegate.m
2018-01-03 11:28:41 +01:00
manuroe
1df6904d00 Test: Disable again loop on [application isProtectedDataAvailable] because I have bg watchdog crash again
(cherry picked from commit 07f331c160)
2018-01-03 11:26:54 +01:00
manuroe
30125eaf4b Missing Push Notifications (#1696): Show a notification even if the app fails to sync with its hs to get all data.
BF: Return a string
2018-01-03 11:06:39 +01:00
manuroe
7fc23665b8 Push notifications: UILocalNotification.fireDate is useless to dedup notifications. Remove it 2018-01-02 15:46:43 +01:00
manuroe
4e91844403 Push notifications: Add fireDate to UILocalNotification in order to retrieve them afterwards.
It seems to be mandatory to make `[[UIApplication sharedApplication] scheduledLocalNotifications]` non empty
2018-01-02 15:03:25 +01:00
manuroe
cf066a7e07 Push notifications: More logs to track duplicated notifications 2018-01-02 14:15:50 +01:00
manuroe
879f42782a AppDelegate: Enable log to file earlier
Try another technique to save logs to files earlier.
The goal is to track unexpected app startup cycle like in https://riot.im/bugreports/listing/2017-12-29/081732/console.1.log.gz (https://github.com/matrix-org/riot-ios-rageshakes/issues/797) and https://riot.im/bugreports/listing/2017-12-31/133345/console.log.gz (https://github.com/matrix-org/riot-ios-rageshakes/issues/805).
2018-01-02 11:56:30 +01:00
Giom Foret
d95851ee97 AppDelegate - Groups: handle links to groups 2017-12-31 16:24:47 +01:00
manuroe
07f331c160 Test: Disable again loop on [application isProtectedDataAvailable] because I have bg watchdog crash again 2017-12-31 10:21:22 +01:00
manuroe
94dc5f8a20 Merge remote-tracking branch 'origin/release-v0.6.7' into develop 2017-12-29 17:16:25 +01:00
manuroe
1838a50878 App Startup: patchy patch: Reenable the loop on [application isProtectedDataAvailable] at least for 10s to secure startup for the moment 2017-12-29 17:01:23 +01:00
manuroe
0cdcff95fc Missing Push Notifications (#1696): Show a notification even if the app fails to sync with its hs to get all data.
Fix last Giom's remark: Make sure we do not display a "limited" notif for an event with already a "full" notif.
2017-12-29 16:43:20 +01:00
manuroe
8676024c40 Missing Push Notifications (#1696): Show a notification even if the app fails to sync with its hs to get all data.
Fixed easy Giom's remarks
2017-12-29 15:20:12 +01:00
manuroe
97cb429f66 Missing Push Notifications (#1696): Show a notification even if the app fails to sync with its hs to get all data.
wording
2017-12-29 13:40:55 +01:00
manuroe
750a6e9784 Missing Push Notifications (#1696): Show a notification even if the app fails to sync with its hs to get all data.
Show notif on /sync failure callback too
2017-12-29 13:33:55 +01:00
manuroe
9e612dd7d0 Missing Push Notifications (#1696): Show a notification even if the app fails to sync with its hs to get all data.
Renaming
2017-12-29 13:22:29 +01:00
manuroe
536c8cc360 Missing Push Notifications (#1696): Show a notification even if the app fails to sync with its hs to get all data.
Build the string for the notification
2017-12-29 13:19:40 +01:00
manuroe
f734096dae Missing Push Notifications (#1696): Show a notification even if the app fails to sync with its hs to get all data.
This fixes the case logged at
https://riot.im/bugreports/listing/2017-12-27/163238/console.2.log.gz
2017-12-29 10:31:16 +01:00
manuroe
bc1ac92f4f Merge remote-tracking branch 'origin/release-v0.6.7' into develop 2017-12-28 14:44:16 +01:00
manuroe
b89f819b0c Log: Add logs for tracking "Silent crash at startup in [MXKContactManager loadCachedMatrixContacts]" (#1711) 2017-12-28 14:23:12 +01:00
manuroe
d4ff908025 Merge remote-tracking branch 'origin/release-v0.6.7' into develop
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
2017-12-27 16:23:42 +01:00
manuroe
beb25cf3ae Missing Push Notifications (#1696): We do not need to wait for [application isProtectedDataAvailable] anymore
Thanks to https://github.com/matrix-org/matrix-ios-kit/pull/387
2017-12-27 15:40:25 +01:00
Giom Foret
65513f21bb Bug Fix: Share extension is not localized?
#1701
2017-12-27 14:53:17 +01:00
Giom Foret
787f4353b9 Merge branch 'develop' into groups 2017-12-22 14:50:40 +01:00
manuroe
8a744fc9e8 Analytics: Create a generic API in AppDelegate class
And move all Google Analytics code to AppDelegate.m
2017-12-22 13:19:40 +01:00
Giom Foret
ef7b64a3b0 Groups: self-management of membership of groups
- Bug Fix: App layout is broken on iPad after having left a group.
- Improve the display of the Group Details Home screen

vector-im/riot-meta#114
vector-im/riot-meta#115
2017-12-21 17:19:36 +01:00
manuroe
41595a58b1 VoIP: increase call invite lifetime from 30 to 60s (https://github.com/vector-im/riot-meta/issues/129) 2017-12-21 09:28:40 +01:00
manuroe
2de408f020 VoIP: increase call invite lifetime from 30 to 60s (https://github.com/vector-im/riot-meta/issues/129) 2017-12-20 11:27:11 +01:00
manuroe
00aa51f40f Missing Push Notifications (#1696): Try to delay [application isProtectedDataAvailable]. At least, logging to file will be enabled 2017-12-19 15:59:35 +01:00
manuroe
7ef736fa63 Push Notifications: Prefix logs related push notifications with "[Push]" and add more logs to track lost notifications 2017-12-19 15:59:22 +01:00
manuroe
9f247aa059 Push Notifications: Add more logs to track possible lost notifications 2017-12-19 15:51:53 +01:00
manuroe
26746144a9 Push Notifications: Add more logs to track possible lost notifications 2017-12-19 15:51:53 +01:00
manuroe
9f2fe587e3 Missing Push Notifications (#1696): Try to delay [application isProtectedDataAvailable]. At least, logging to file will be enabled 2017-12-19 14:44:10 +01:00
manuroe
bf991c4a69 Push Notifications: Prefix logs related push notifications with "[Push]" and add more logs to track lost notifications 2017-12-18 09:47:48 +01:00
manuroe
0401755443 Push Notifications: Add more logs to track possible lost notifications 2017-12-15 09:38:43 +01:00
manuroe
c3fc852811 Push Notifications: Add more logs to track possible lost notifications 2017-12-15 09:26:44 +01:00
Giom Foret
fcff3fe87d Groups: self-management of membership of groups
- Add Groups tab

vector-im/riot-meta#114
2017-12-12 16:03:26 +01:00
manuroe
2b3ead60fe Matrix SDK extensions: use new 'MatrixSDK/GoogleAnalytics' pod 2017-12-06 15:57:48 +01:00
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)