2015-08-18 08:04:30 +00:00
|
|
|
/*
|
|
|
|
Copyright 2015 OpenMarket Ltd
|
2017-03-08 15:14:41 +00:00
|
|
|
Copyright 2017 Vector Creations Ltd
|
2015-12-08 09:10:59 +00:00
|
|
|
|
2015-08-18 08:04:30 +00:00
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
2015-12-08 09:10:59 +00:00
|
|
|
|
2015-08-18 08:04:30 +00:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2015-12-08 09:10:59 +00:00
|
|
|
|
2015-08-18 08:04:30 +00:00
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2015-12-08 09:10:59 +00:00
|
|
|
#import "RoomIncomingTextMsgWithPaginationTitleBubbleCell.h"
|
2015-08-18 08:04:30 +00:00
|
|
|
|
2019-01-11 09:32:56 +00:00
|
|
|
#import "ThemeService.h"
|
2021-10-26 15:42:33 +00:00
|
|
|
#import "GeneratedInterface-Swift.h"
|
2019-03-07 16:46:45 +00:00
|
|
|
#import "MXKRoomBubbleTableViewCell+Riot.h"
|
2015-12-16 14:16:37 +00:00
|
|
|
|
2015-12-08 09:10:59 +00:00
|
|
|
@implementation RoomIncomingTextMsgWithPaginationTitleBubbleCell
|
2015-08-25 18:14:07 +00:00
|
|
|
|
2017-08-08 14:05:43 +00:00
|
|
|
- (void)customizeTableViewCellRendering
|
2015-12-16 14:16:37 +00:00
|
|
|
{
|
2017-08-08 14:05:43 +00:00
|
|
|
[super customizeTableViewCellRendering];
|
2015-12-16 14:16:37 +00:00
|
|
|
|
2019-03-07 16:46:45 +00:00
|
|
|
[self updateUserNameColor];
|
2019-01-11 10:45:27 +00:00
|
|
|
self.paginationLabel.textColor = ThemeService.shared.theme.tintColor;
|
|
|
|
self.paginationSeparatorView.backgroundColor = ThemeService.shared.theme.tintColor;
|
|
|
|
self.messageTextView.tintColor = ThemeService.shared.theme.tintColor;
|
2015-12-16 14:16:37 +00:00
|
|
|
}
|
|
|
|
|
2015-12-15 16:20:44 +00:00
|
|
|
- (void)render:(MXKCellData *)cellData
|
|
|
|
{
|
|
|
|
[super render:cellData];
|
|
|
|
|
2016-04-28 14:26:37 +00:00
|
|
|
if (bubbleData)
|
2015-12-15 16:20:44 +00:00
|
|
|
{
|
2016-04-28 14:26:37 +00:00
|
|
|
self.paginationLabel.text = [[bubbleData.eventFormatter dateStringFromDate:bubbleData.date withTime:NO] uppercaseString];
|
2019-03-07 16:46:45 +00:00
|
|
|
|
|
|
|
[self updateUserNameColor];
|
2015-12-15 16:20:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-18 08:04:30 +00:00
|
|
|
@end
|