mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
MESSENGER_2910 fix invite to personal notes && dms
This commit is contained in:
@@ -90,7 +90,8 @@
|
||||
self.enableBarTintColorStatusChange = NO;
|
||||
self.rageShakeManager = [RageShakeManager sharedManager];
|
||||
self.showParticipantCustomAccessoryView = YES;
|
||||
self.showInviteUserFab = YES;
|
||||
|
||||
self.showInviteUserFab = NO;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
@@ -529,21 +530,15 @@
|
||||
{
|
||||
AccountRestrictionService *service = [[AccountRestrictionService alloc] initWithMxSession:room.mxSession];
|
||||
|
||||
if ((room.isDirect && !BwiBuildSettings.allowInviteOnDirectRooms) || room.isPersonalNotesRoom || [service isAddressListRestriction])
|
||||
self.showInviteUserFab = !(room.isDirect || BwiBuildSettings.allowInviteOnDirectRooms) && !room.isPersonalNotesRoom
|
||||
&& ![service isAddressListRestriction];
|
||||
|
||||
if (_showInviteUserFab)
|
||||
{
|
||||
// Remove invite members button if exists
|
||||
[self->inviteFabImageView removeFromSuperview];
|
||||
self->inviteFabImageView = nil;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Add invite members button programmatically if does not exist
|
||||
if (!self->inviteFabImageView)
|
||||
{
|
||||
self->inviteFabImageView = [self vc_addFABWithImage:[UIImage imageNamed:@"add_member_floating_action"]
|
||||
target:self
|
||||
action:@selector(onAddParticipantButtonPressed)];
|
||||
}
|
||||
// Add invite members button programmatically
|
||||
[self vc_addFABWithImage:AssetImages.addMemberFloatingAction.image
|
||||
target:self
|
||||
action:@selector(onAddParticipantButtonPressed)];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user