mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 13:46:57 +02:00
Chat: Bug Fix event timestamp is not aligned when username is hidden.
This commit is contained in:
@@ -28,26 +28,4 @@
|
||||
self.userNameLabel.textColor = VECTOR_TEXT_BLACK_COLOR;
|
||||
}
|
||||
|
||||
- (void)render:(MXKCellData *)cellData
|
||||
{
|
||||
[super render:cellData];
|
||||
|
||||
if (self.userNameLabel.isHidden)
|
||||
{
|
||||
// Adjust the top constraint of the message text view (This constraint is restored at the end of cell use see [didEndDisplay]).
|
||||
self.msgTextViewTopConstraint.constant -= self.userNameLabel.frame.size.height;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)didEndDisplay
|
||||
{
|
||||
// Restore the top constraint of the message text view if it has been modified during rendering
|
||||
if (self.userNameLabel.isHidden)
|
||||
{
|
||||
self.msgTextViewTopConstraint.constant += self.userNameLabel.frame.size.height;
|
||||
}
|
||||
|
||||
[super didEndDisplay];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user