Commit Graph

249 Commits

Author SHA1 Message Date
SBiOSoftWhare 2131e10abb RecentsDataSource: Do not display secure backup banner when keys upload is in process. 2021-05-17 15:44:29 +02:00
SBiOSoftWhare e41e4978a3 RecentsDataSource: Hide spaces from home and room list but keep space invites. 2021-04-29 16:38:45 +02:00
SBiOSoftWhare 438725c64a RecentsDataSource: Hide spaces from home and room list but keep space invites. 2021-04-29 16:38:45 +02:00
Johannes Marbach 35cd428822 Fix memory leak in [RecentsDataSource dataSource:didStateChange:]
The block passed into `[MXSession listenToEventsOfTypes:onEvent:]` is stored with a strong
reference in the `listenerBlock` property of `MXSessionEventListener`. The method also
returns the listener and it is then stored into the `roomTagsListenerByUserId` dictionary
on `self`. Since a strong reference to `self` is captured in the block that means the block
retains `self` (via the capture) and `self` retains the block (via `roomTagsListenerByUserId`)
so there is a memory leak.

The bug is most easily reproduced during testing #4168 which involves closing the current
and creating a new session.

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2021-04-08 20:54:03 +02:00
Johannes Marbach f1a6ab4278 Fix memory leak in [RecentsDataSource dataSource:didStateChange:]
The block passed into `[MXSession listenToEventsOfTypes:onEvent:]` is stored with a strong
reference in the `listenerBlock` property of `MXSessionEventListener`. The method also
returns the listener and it is then stored into the `roomTagsListenerByUserId` dictionary
on `self`. Since a strong reference to `self` is captured in the block that means the block
retains `self` (via the capture) and `self` retains the block (via `roomTagsListenerByUserId`)
so there is a memory leak.

The bug is most easily reproduced during testing #4168 which involves closing the current
and creating a new session.

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2021-04-08 20:54:03 +02:00
Gil Eluard 7d7a546166 Retrying & deleting failed messages
- Added unsent notice to tab bar room items
2021-03-11 09:01:44 +01:00
Gil Eluard ddaa68fc1f Retrying & deleting failed messages
- Added unsent notice to tab bar room items
2021-03-11 09:01:44 +01:00
Gil Eluard f00281c20f Retrying & deleting failed messages
- Update after code review
2021-03-10 22:19:04 +01:00
Gil Eluard 120425389f Retrying & deleting failed messages
- Update after code review
2021-03-10 22:19:04 +01:00
Gil Eluard 3ab8635344 Update Riot/Modules/Common/Recents/DataSources/RecentsDataSource.m
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2021-03-10 21:31:24 +01:00
Gil Eluard c9f5e6cf0d Update Riot/Modules/Common/Recents/DataSources/RecentsDataSource.m
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2021-03-10 21:31:24 +01:00
Gil Eluard 84d49f1344 Merge branch 'element_4014' into element_4013
# Conflicts:
#	Riot/Modules/Room/DataSources/RoomDataSource.m
2021-03-09 13:22:13 +01:00
Gil Eluard 4a8bcbec1f Merge branch 'element_4014' into element_4013
# Conflicts:
#	Riot/Modules/Room/DataSources/RoomDataSource.m
2021-03-09 13:22:13 +01:00
SBiOSoftWhare 5e724b893f Update PublicRoomsDirectoryDataSource with RiotSettings.shared.showNSFWPublicRooms value where needed. 2021-03-03 16:33:11 +01:00
SBiOSoftWhare 7a94aa4213 Update PublicRoomsDirectoryDataSource with RiotSettings.shared.showNSFWPublicRooms value where needed. 2021-03-03 16:33:11 +01:00
Gil Eluard 5cb904d2ee Retrying & deleting failed messages
- Display an exclamation mark (on a red background). In case of a multi-line message
- When a message with an error is selected, show a bottom bar with the 4 following actions: Retry - Delete - Edit - Copy
- If users press on Delete, a confirmation dialog is displayed
- When error messages occur, a general error message appears above the composer. Selecting Delete will delete all error messages. Pressing on Retry will attempt to resend error messages
- If users press on Delete, a confirmation dialog is displayed
- In room lists, decorate rooms with errored messages with the error icon. Rooms with errors should be sorted first
2021-03-02 21:56:50 +01:00
Gil Eluard d58f499871 Retrying & deleting failed messages
- Display an exclamation mark (on a red background). In case of a multi-line message
- When a message with an error is selected, show a bottom bar with the 4 following actions: Retry - Delete - Edit - Copy
- If users press on Delete, a confirmation dialog is displayed
- When error messages occur, a general error message appears above the composer. Selecting Delete will delete all error messages. Pressing on Retry will attempt to resend error messages
- If users press on Delete, a confirmation dialog is displayed
- In room lists, decorate rooms with errored messages with the error icon. Rooms with errors should be sorted first
2021-03-02 21:56:50 +01:00
manuroe c27259936c MXSession: Make sure vc_canSetupSecureBackup is reusable
Put specific additional check out of this method
2020-10-01 16:46:32 +02:00
manuroe baca9c78e1 MXSession: Make sure vc_canSetupSecureBackup is reusable
Put specific additional check out of this method
2020-10-01 16:46:32 +02:00
SBiOSoftWhare 1f6743f612 Remove old AppDelegate imports. 2020-08-31 19:38:06 +02:00
SBiOSoftWhare 4995d71334 Remove old AppDelegate imports. 2020-08-31 19:38:06 +02:00
ismailgulek 83a29d1bee Namespace some settings 2020-08-03 16:07:39 +03:00
ismailgulek 5dbc026d05 Namespace some settings 2020-08-03 16:07:39 +03:00
manuroe fbf8ed83b6 BuildSettings: Add options for Room directory 2020-07-31 15:14:26 +02:00
manuroe 59bf60feb8 BuildSettings: Add options for Room directory 2020-07-31 15:14:26 +02:00
SBiOSoftWhare fe468c0c09 Theme: Update disclosure indicator with theme color. 2020-07-16 23:16:11 +02:00
SBiOSoftWhare 3a5c549607 Theme: Update disclosure indicator with theme color. 2020-07-16 23:16:11 +02:00
SBiOSoftWhare ece9e77cd8 Refactor cross signing banner. 2020-06-30 21:46:10 +02:00
SBiOSoftWhare d6773b9380 Refactor cross signing banner. 2020-06-30 21:46:10 +02:00
SBiOSoftWhare 9c66b5428b RecentsDataSource: Handle key verification setup banner. 2020-06-30 17:33:42 +02:00
SBiOSoftWhare 1216a15765 RecentsDataSource: Handle key verification setup banner. 2020-06-30 17:33:42 +02:00
SBiOSoftWhare dfb5627126 Refactoring secure backup references. 2020-06-26 14:13:37 +02:00
SBiOSoftWhare a11e740d53 Refactoring secure backup references. 2020-06-26 14:13:37 +02:00
SBiOSoftWhare f3f1654007 Refactoring secure backup references. 2020-06-26 13:07:53 +02:00
SBiOSoftWhare 1ef5ea0379 Refactoring secure backup references. 2020-06-26 13:07:53 +02:00
SBiOSoftWhare 7c749a026f Fix refactoring. 2020-06-25 17:52:36 +02:00
SBiOSoftWhare 27ca10a665 Fix refactoring. 2020-06-25 17:52:36 +02:00
SBiOSoftWhare 057890dd52 Fix Manu's remarks. 2020-06-25 17:31:46 +02:00
SBiOSoftWhare a028e71aff Fix Manu's remarks. 2020-06-25 17:31:46 +02:00
SBiOSoftWhare 2c30d7daa2 RecentsDataSource: Handle secure key backup banner display logic. 2020-06-25 16:01:32 +02:00
SBiOSoftWhare e87f8245d1 RecentsDataSource: Handle secure key backup banner display logic. 2020-06-25 16:01:32 +02:00
ismailgulek e77aceef7b Section header views adaptation to safe area insets
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-04-22 14:00:31 +03:00
ismailgulek d49ac6b4dd Section header views adaptation to safe area insets
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-04-22 14:00:31 +03:00
Giom Foret f65b5e735e Bug Fix Key backup banner is not hidden correctly
#2899
2020-01-09 19:17:54 +01:00
Giom Foret 3fdf41ea6a Bug Fix Key backup banner is not hidden correctly
#2899
2020-01-09 19:17:54 +01:00
SBiOSoftWhare 1371487821 Do not present key backup banner on HomeVIewController if there are no keys to backup 2019-03-05 15:35:39 +01:00
SBiOSoftWhare 9c7103ee0f Do not present key backup banner on HomeVIewController if there are no keys to backup 2019-03-05 15:35:39 +01:00
manuroe 9c806c4c6c Reskin: HomeVC: Use notices colors for badges background in section headers
#2292
2019-02-28 22:09:57 +00:00
manuroe d87cc1f8d4 Reskin: HomeVC: Use notices colors for badges background in section headers
#2292
2019-02-28 22:09:57 +00:00
manuroe ed3224cba0 Reskin: Text in badges should be white in dark theme
#2283
2019-02-21 13:07:37 +01:00