Commit graph

373 commits

Author SHA1 Message Date
fridtjof
0448c3183d
finalize emote style notifications 2019-03-22 01:20:50 +01:00
fridtjof
b35e62f1cd
add additional notification titles 2019-03-22 01:10:57 +01:00
fridtjof
490e6f8096
add a threadIdentifier to notifications and implement titles 2019-03-22 00:40:27 +01:00
SBiOSoftWhare
93af475cec
Merge pull request #2207 from fridtjof/ios10-notifications
Add code to support the new notification system starting with iOS 10
2019-03-21 16:45:07 +01:00
fridtjof
1c90e0cb44
navigate to the room when a notification is tapped on iOS 10 2019-03-14 01:05:30 +01:00
fridtjof
90188cdcf3
remove displayedNotificationRequestForEvent:andUser:type: (unused as of 93ce20e and 04e9bf9) 2019-03-14 00:57:09 +01:00
fridtjof
7ae3070e0a
don't display notifications when in foreground 2019-03-14 00:53:41 +01:00
fridtjof
589829d076
factor out common code 2019-03-14 00:50:04 +01:00
fridtjof
04e9bf9a6b
don't bother ignoring notifications on iOS 10+ - no 2 2019-03-14 00:49:02 +01:00
fridtjof
93ce20e9cc
don't bother ignoring notifications on iOS 10+ 2019-03-14 00:35:36 +01:00
fridtjof
2f1b6153a8
more accurately match the old notification action handler in the iOS 10+ code 2019-03-14 00:23:43 +01:00
Fridtjof Mund
59f79f4bab
Merge branch 'develop' into deprecations/contacts-api 2019-02-20 18:14:36 +01:00
fridtjof
077c5327a7
fix changes made in 8c4b5d09 2019-02-20 18:12:18 +01:00
manuroe
b9df55535f
Merge pull request #2221 from fridtjof/deprecations/percent_encoding
Take care of percent encoding related deprecations
2019-02-20 15:06:11 +01:00
SBiOSoftWhare
c9a8d5b353 Remove UINavigationBar appearance update from AppDelegate 2019-02-19 09:51:35 +01:00
fridtjof
e138dd8d2c
use the Matrix SDK's method for percent encoding 2019-02-18 15:31:55 +01:00
manuroe
f505440710 Key backup: new recover method detected
#2230
2019-02-15 17:29:48 +01:00
manuroe
5044dc6e2e BF: Reskin: Sometimes the roomVC navigation bar is tranparent
#2252
2019-02-15 15:21:33 +01:00
fridtjof
8cb6b8600d
separate notification content generation for iOS 10+ - this will make using iOS 10+ features easier 2019-02-13 14:19:41 +01:00
fridtjof
bc393d146b
specify empty array instead of NULL for intentIdentifiers 2019-02-13 14:19:40 +01:00
fridtjof
accb155a22
add iOS 10+ alternatives to all uses of the old notification system 2019-02-13 14:19:40 +01:00
fridtjof
7b07c36504
Implement UNUserNotificationCenterDelegate methods 2019-02-13 14:19:40 +01:00
fridtjof
897789e5fd
Use the non-deprecated UNUserNotification framework on iOS 10 and up 2019-02-13 14:19:40 +01:00
fridtjof
8c4b5d092b
replace contact availability checks with the iOS 9+ way 2019-02-05 01:36:13 +01:00
fridtjof
d14d472b60
take care of percent encoding related deprecations 2019-02-04 21:22:43 +01:00
SBiOSoftWhare
77a9bbbcda Reset key backup banner preferences on logout 2019-01-31 19:53:12 +01:00
manuroe
3d4c80bc24 Fix display of build number in settings and bug reports
Jenkins now uses a timestamp as build number (ex:20190124155504) that is bigger than 32 bits
2019-01-24 17:45:43 +01:00
fridtjof
2d53ac118d
AppDelegate: no need to check for iOS 8+ notifications anymore, the minimum supported version is iOS 9 2019-01-18 18:12:49 +01:00
manuroe
b4724e46d2 BF: Infinite loading wheel when taping on a fake room alias
#679
2019-01-17 17:46:49 +01:00
manuroe
6e4a7224bf reskin: Kill KVO on theme setting 2019-01-14 10:53:43 +01:00
manuroe
744208ae25 reskin: Create ThemeService.shared 2019-01-11 11:45:27 +01:00
manuroe
b3b6e2c80c reskin: Rename RiotDesignValues -> ThemeService 2019-01-11 10:46:00 +01:00
manuroe
21a9a7c9f3 reskin: kill kRiotPrimaryBgColor 2019-01-10 17:50:26 +01:00
manuroe
eca85776a1 reskin: rename ColorValues to Theme 2019-01-10 15:32:59 +01:00
manuroe
6f30f88b03 reskin: ColorValues: suffix UIColor properties names with "Color" 2019-01-10 15:23:22 +01:00
manuroe
cecba319cf Merge remote-tracking branch 'origin/develop' into reskin
# Conflicts:
#	Riot/Constants/RiotDesignValues.m
#	Riot/Modules/Authentication/AuthenticationViewController.m
2019-01-10 11:50:57 +01:00
manuroe
d7c3eef632 Merge remote-tracking branch 'origin/develop' into reskin 2019-01-09 16:38:49 +01:00
fridtjof
c7fbca7698
make use of Obj-C's modern syntax for literals and subscripting 2019-01-08 00:24:11 +01:00
fridtjof
8291c99542
fix almost all the warnings caused by -Wstrict-prototypes 2019-01-05 03:28:53 +01:00
manuroe
a50c9f55b1 Reskin: Kill kRiotColorGreen and use RiotDesignValues.colorValues.accent instead 2018-11-30 17:10:28 +01:00
Aaron Raimist
c0c1e8a1c6
Remove all calls of [NSUserDefaults synchronize] (#1924)
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2018-10-15 16:58:10 -05:00
manuroe
85c19c2149 Notifications: old notifications can reappear
#1985
2018-10-10 18:05:17 +02:00
manuroe
7b22cf9bf7 Lazy-Loading: On logout, reenable LL 2018-09-25 15:46:07 +02:00
manuroe
8417a3cc35 GDPRConsentViewController: close it once the user has given their consent
Do not wait anymore for the completion of the creation of the room with riot-bot
2018-08-24 12:31:57 +02:00
Giom Foret
2ab27e2120 Bug Fix - User defaults: the preset application language (if any) is ignored.
AppDelegate: the userDefaults were registered after the application language handling
2018-08-22 15:36:03 +02:00
manuroe
db8e5687a2 BF: Empty app if initial /sync fails
#1975
2018-08-13 17:14:32 +02:00
SBiOSoftWhare
a9ab11b935 GDPRConsentViewController now do not take into account HS hostname to determine if user consent to GDPR. 2018-08-09 18:56:40 +02:00
SBiOSoftWhare
faa6c9eb52 Fix OnBoardingManager method call in AppDelegate 2018-08-09 14:47:15 +02:00
SBiOSoftWhare
fb95b638f7 Now create riot bot direct message room after GDPR consent success. 2018-08-09 12:19:24 +02:00
SBiOSoftWhare
1b0c481d59 Now use GDPRConsentViewController in AppDelegate in order to present GDPR consent and dismiss controller automatically when accept consent. 2018-08-09 12:19:24 +02:00
manuroe
a19ce74853 Lazy-loading server side: Use MXRoomState.members instead of [MXRoom members:] when possible 2018-08-01 17:12:46 +02:00
manuroe
ee419fb1a0 New async [MXRoom state:]: Use [MXRoom members:] 2018-07-23 15:38:50 +02:00
manuroe
7304c08543 New async [MXRoom state:]: Make Riot build 2018-07-20 14:01:10 +02:00
manuroe
81e7dd14ce New async [MXRoom state:]: Make AppDelegate build 2018-07-19 14:18:30 +02:00
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