Commit Graph

1156 Commits

Author SHA1 Message Date
Gil Eluard c4fe2f9fa7 Make joining public rooms configurable 2021-04-13 19:21:07 +02:00
Gil Eluard 7da3bd1296 Make joining public rooms configurable 2021-04-13 19:21:07 +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
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
manuroe 7c4490eade Room lists: Do not encryptedRoomIcon in the code
Let it sleep hidden in the xib
2021-03-19 09:19:02 +01:00
manuroe b309c2fe96 Room lists: Do not encryptedRoomIcon in the code
Let it sleep hidden in the xib
2021-03-19 09:19:02 +01:00
manuroe cb66b6971b Room lists: Remove shields on room avatars
#4115

but keep it in the room screen
2021-03-17 15:32:01 +01:00
manuroe c7e413dc37 Room lists: Remove shields on room avatars
#4115

but keep it in the room screen
2021-03-17 15:32:01 +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 7d7a546166 Retrying & deleting failed messages
- Added unsent notice to tab bar room items
2021-03-11 09:01:44 +01:00
Gil Eluard 120425389f Retrying & deleting failed messages
- Update after code review
2021-03-10 22:19:04 +01:00
Gil Eluard f00281c20f Retrying & deleting failed messages
- Update after code review
2021-03-10 22:19:04 +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 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 4a8bcbec1f Merge branch 'element_4014' into element_4013
# Conflicts:
#	Riot/Modules/Room/DataSources/RoomDataSource.m
2021-03-09 13:22:13 +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 bb0f2819fa Retrying & deleting failed messages
- code and UI tweaks
2021-03-03 21:37:04 +01:00
Gil Eluard 8d546430d6 Retrying & deleting failed messages
- code and UI tweaks
2021-03-03 21:37:04 +01:00
SBiOSoftWhare 7a94aa4213 Update PublicRoomsDirectoryDataSource with RiotSettings.shared.showNSFWPublicRooms value where needed. 2021-03-03 16:33:11 +01:00
SBiOSoftWhare 5e724b893f Update PublicRoomsDirectoryDataSource with RiotSettings.shared.showNSFWPublicRooms value where needed. 2021-03-03 16:33:11 +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
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
SBiOSoftWhare 3da61fc78b RecentsVC: Handle room directory display. HomeVC now show room directory on join room action. 2021-02-22 17:47:40 +01:00
SBiOSoftWhare 948103b1ba RecentsVC: Handle room directory display. HomeVC now show room directory on join room action. 2021-02-22 17:47:40 +01:00
ismailgulek 94314a07df Merge branch 'voip_2746' into voip_dialpad 2021-02-10 00:38:23 +03:00
ismailgulek 5f6caef4e4 Merge branch 'voip_2746' into voip_dialpad 2021-02-10 00:38:23 +03:00
Gil Eluard ba9f22c6b5 The Invite cell behaviour is not driven by MXRoom.isDirect property anymore 2021-02-05 10:25:27 +01:00
Gil Eluard 6d9fdc78fb The Invite cell behaviour is not driven by MXRoom.isDirect property anymore 2021-02-05 10:25:27 +01:00
ismailgulek 6128a96805 Merge branch 'voip_2746' into voip_dialpad
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
2021-01-20 16:25:36 +03:00
ismailgulek ee9779e4ed Merge branch 'voip_2746' into voip_dialpad
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
2021-01-20 16:25:36 +03:00
Gil Eluard 99602bf612 Prevent navigation controller from pushing same view controller 2021-01-14 10:57:12 +01:00
Gil Eluard 057cd78502 Prevent navigation controller from pushing same view controller 2021-01-14 10:57:12 +01:00
ismailgulek 8ad6038d63 Fix warnings, pass properties to new instance 2021-01-13 22:28:22 +03:00
ismailgulek 06294825d5 Fix warnings, pass properties to new instance 2021-01-13 22:28:22 +03:00
ismailgulek 8f1836564a Implement dialpad view controller 2021-01-13 21:51:47 +03:00
ismailgulek 20bc454b77 Implement dialpad view controller 2021-01-13 21:51:47 +03:00
SBiOSoftWhare abc1f285fb Add CustomRoundedButton: Button to customized from the outside. 2021-01-11 18:22:43 +01:00
SBiOSoftWhare 5236ddaf71 Add CustomRoundedButton: Button to customized from the outside. 2021-01-11 18:22:43 +01:00
SBiOSoftWhare 267d91245a Add SourceImage that represents a local or remote image. 2020-12-18 18:44:08 +01:00
SBiOSoftWhare eb23618ed5 Add SourceImage that represents a local or remote image. 2020-12-18 18:44:08 +01:00
SBiOSoftWhare 698bd175ee Merge develop into element_3836 2020-11-30 17:54:16 +01:00
SBiOSoftWhare dee944939d Merge develop into element_3836 2020-11-30 17:54:16 +01:00
SBiOSoftWhare 0902e59fa4 Merge branch 'develop' into invites_quick_approval
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
2020-11-27 14:50:04 +01:00
SBiOSoftWhare 9bd01fc2d2 Merge branch 'develop' into invites_quick_approval
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
2020-11-27 14:50:04 +01:00
SBiOSoftWhare 941b57ef4a Empty screens: Implement empty view management in RecentsViewController. 2020-11-26 11:02:42 +01:00
SBiOSoftWhare a8427c433e Empty screens: Implement empty view management in RecentsViewController. 2020-11-26 11:02:42 +01:00
SBiOSoftWhare f88b58ee55 Empty screens: Add RootTabEmptyView a view displayed when there is no UI item to display on a screen. 2020-11-26 10:41:29 +01:00
SBiOSoftWhare ec43f572eb Empty screens: Add RootTabEmptyView a view displayed when there is no UI item to display on a screen. 2020-11-26 10:41:29 +01:00
SBiOSoftWhare 72242fed72 HomeViewController: Integrate empty screen. 2020-11-20 14:54:02 +01:00
SBiOSoftWhare 04c8432cc0 HomeViewController: Integrate empty screen. 2020-11-20 14:54:02 +01:00