Change the group chat info popup menu size to match the available features

This commit is contained in:
QuentinArguillere 2021-06-14 16:21:29 +02:00
parent f489d4747a
commit d42c8d0053

View file

@ -240,6 +240,11 @@ static UICompositeViewDescription *compositeDescription = nil;
completion:nil];
}
[self configureForRoom:self.editing];
// Resize the popup table depending on wether ephemeral messages are enabled or not.
CGRect popupFrame = _popupMenu.frame;
popupFrame.size.height = 44 * [_popupMenu numberOfRowsInSection:0];
_popupMenu.frame = popupFrame;
}