Commit Graph

159 Commits

Author SHA1 Message Date
ismailgulek f144bc434c Include room display name in fallback content 2020-06-25 14:18:53 +03:00
ismailgulek 262ceb8e99 Pass also roomId to fetch and sync methods 2020-06-25 12:42:07 +03:00
ismailgulek cb2f9973d3 Read badge from payload 2020-06-25 11:48:02 +03:00
ismailgulek b36ee8044b Fix rebooted and not unlocked case for extension 2020-06-23 11:19:13 +03:00
ismailgulek 49a6534c8f Log sound name 2020-06-19 17:07:13 +03:00
ismailgulek cb4a28dc12 Simplify myUser property 2020-06-19 11:28:13 +03:00
ismailgulek 6ca421fc81 Use constants for error 2020-06-19 11:22:11 +03:00
ismailgulek 169dfd4d97 Fix session user displayname, for checks in MXPushRuleDisplayNameCondtionChecker 2020-06-19 10:36:27 +03:00
ismailgulek b423d2c4f0 Fix Manu's comments 2020-06-17 19:05:11 +03:00
ismailgulek 1fa4059381 Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-06-17 18:53:24 +03:00
ismailgulek db4c4a8819 Do not close session 2020-06-17 15:51:12 +03:00
ismailgulek 96c6c5afd8 Reuse session 2020-06-17 15:50:51 +03:00
ismailgulek 0b7c077610 Reuse memory store 2020-06-17 15:35:10 +03:00
ismailgulek 630fd5ea76 Enhance logs about reuse 2020-06-17 15:18:20 +03:00
ismailgulek f85d70a68e Remove redundant store close 2020-06-17 14:31:56 +03:00
ismailgulek efea2f47ea Use push rules specific to event 2020-06-16 19:25:53 +03:00
ismailgulek 251121596d Revert number of log files to default, as will reuse log files more 2020-06-16 19:24:45 +03:00
ismailgulek f3939e7b16 Simplify syncs with filtering 2020-06-16 16:30:22 +03:00
ismailgulek ad0c5c684a Reuse MXFileStore instance 2020-06-16 16:29:13 +03:00
ismailgulek 2afe439ce5 Fix logs rotation too much 2020-06-16 16:19:09 +03:00
ismailgulek e25302b1ee Fix logs path 2020-06-16 16:17:58 +03:00
ismailgulek 01d7b73dbc Make showDecryptedContentInNotifications to avoid recomputation every time 2020-06-11 17:16:16 +03:00
ismailgulek a1ac599360 Remove ambigious original content call 2020-06-11 16:46:02 +03:00
ismailgulek a798fe0a17 Load room and summary directly 2020-06-11 16:41:57 +03:00
ismailgulek 7e2d05eee3 Reuse store and session 2020-06-11 16:37:21 +03:00
ismailgulek 545a1df62d Convert cachedEvent to eventId based map 2020-06-11 16:30:08 +03:00
ismailgulek 4d3bfe6220 Convert originalContent to eventId based map 2020-06-11 16:28:34 +03:00
ismailgulek 1ea92035df Convert contentHandler to eventId based map 2020-06-11 16:25:59 +03:00
ismailgulek 2cb6e2ec94 Increase NSE log files to hundred 2020-06-09 11:16:13 +03:00
ismailgulek afdea0c5a8 Avoid default notification sound, fixes #3316 2020-06-05 13:43:18 +03:00
ismailgulek 1bd8ffa095 Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-06-02 18:54:47 +03:00
ismailgulek 42a7a18c70 Enhance NSE logs for debugging 2020-06-02 18:25:19 +03:00
ismailgulek 2ab51d06b3 Store new batch token returned from sync, for bg sync to be terminated successfully, fixes #3295
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-06-01 15:37:09 +03:00
ismailgulek 9e5f338761 Close whole session at the end of the processing
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-06-01 15:29:32 +03:00
ismailgulek 190cb5f106 Cache event fetched from backend, to avoid future calls
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-06-01 15:29:02 +03:00
ismailgulek f06383223b Adapt to new method, change timeout to seconds
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-29 11:26:43 +03:00
ismailgulek 0ceb4bfaa3 Add some comments
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-29 09:56:44 +03:00
ismailgulek 3e54e6095f Fix Manu's comments
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-29 09:55:58 +03:00
ismailgulek 31abb9de92 Drop MXKAccount and MXFileStore usages
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-27 18:54:24 +03:00
ismailgulek b52251a1f2 Implement a memory store specific to NSE
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-27 18:34:04 +03:00
ismailgulek d54601adfd Change some guarding to if check
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-26 18:28:08 +03:00
ismailgulek 5eefec4226 Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-05-26 18:26:00 +03:00
ismailgulek a24c9cf766 Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-05-26 18:24:21 +03:00
ismailgulek d888c82a27 Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-05-26 18:23:47 +03:00
ismailgulek 44e06f5876 Remove some redundant semicolons
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-26 18:22:05 +03:00
ismailgulek c5576dcfb9 Add fallback method calls on some points
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-26 18:21:30 +03:00
ismailgulek 7e08b51df9 Change logs for fallback cases
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-26 18:15:44 +03:00
ismailgulek 6760b653b5 Update RiotNSE/NotificationService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-05-26 17:52:26 +03:00
ismailgulek 1fb2d2b378 Swiftify extension methods
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 21:24:08 +03:00
ismailgulek 69b9622916 Swiftify code, style changes
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 21:23:36 +03:00