From 8b4eaa6e333fac1722417f6d2bc4e2552ead635c Mon Sep 17 00:00:00 2001 From: Gil Eluard Date: Tue, 8 Dec 2020 22:01:46 +0100 Subject: [PATCH] Plugged BuildSettings.messageDetailsAllowShare to self.allowActionsInDocumentPreview MXKRoomViewController's property --- CHANGES.rst | 1 + Riot/Modules/Room/RoomViewController.m | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 156e69460..8ab48d846 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -31,6 +31,7 @@ Changes in 1.1.2 (2020-12-02) 🙌 Improvements * Room History: Remove the report option for outgoing messages. * Empty views: Add empty screen when there is nothing to display on home, people, favourites and rooms screen (#3836). + * BuildSettings.messageDetailsAllowShare now hide /show action button in document preview 🐛 Bugfix * Restore the modular widget events in the rooms histories. diff --git a/Riot/Modules/Room/RoomViewController.m b/Riot/Modules/Room/RoomViewController.m index 6d9e8e2bb..27b14118f 100644 --- a/Riot/Modules/Room/RoomViewController.m +++ b/Riot/Modules/Room/RoomViewController.m @@ -294,6 +294,9 @@ // Listen to the event sent state changes [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(eventDidChangeSentState:) name:kMXEventDidChangeSentStateNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(eventDidChangeIdentifier:) name:kMXEventDidChangeIdentifierNotification object:nil]; + + // Show / hide actions button in document preview according BuildSettings + self.allowActionsInDocumentPreview = BuildSettings.messageDetailsAllowShare; } - (void)viewDidLoad