mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
Add missing copy menu item for messages, fixes #6036
This commit is contained in:
@@ -3485,9 +3485,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
|
||||
MXWeakify(self);
|
||||
|
||||
BOOL showThreadOption = RiotSettings.shared.enableThreads
|
||||
&& !self.roomDataSource.threadId
|
||||
&& !selectedEvent.threadId;
|
||||
BOOL showThreadOption = [self showThreadOptionForEvent:selectedEvent];
|
||||
if (showThreadOption && [self canCopyEvent:selectedEvent andCell:cell])
|
||||
{
|
||||
[self.eventMenuBuilder addItemWithType:EventMenuItemTypeCopy
|
||||
@@ -6417,7 +6415,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
|
||||
BOOL showMoreOption = (event.isState && RiotSettings.shared.roomContextualMenuShowMoreOptionForStates)
|
||||
|| (!event.isState && RiotSettings.shared.roomContextualMenuShowMoreOptionForMessages);
|
||||
BOOL showThreadOption = !self.roomDataSource.threadId && !event.threadId;
|
||||
BOOL showThreadOption = [self showThreadOptionForEvent:event];
|
||||
|
||||
NSMutableArray<RoomContextualMenuItem*> *items = [NSMutableArray arrayWithCapacity:5];
|
||||
|
||||
@@ -6808,6 +6806,13 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
|
||||
#pragma mark - Threads
|
||||
|
||||
- (BOOL)showThreadOptionForEvent:(MXEvent*)event
|
||||
{
|
||||
return !self.roomDataSource.threadId
|
||||
&& !event.threadId
|
||||
&& (RiotSettings.shared.enableThreads || self.mainSession.store.supportedMatrixVersions.supportsThreads);
|
||||
}
|
||||
|
||||
- (void)showThreadsNotice
|
||||
{
|
||||
if (!self.threadsNoticeModalPresenter)
|
||||
|
||||
Reference in New Issue
Block a user