зеркало из https://github.com/nextcloud/talk-ios.git
Format correctly changelog room.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Родитель
21482d2df9
Коммит
bab61393d4
|
@ -26,5 +26,6 @@ static NSString *AutoCompletionCellIdentifier = @"AutoCompletionCellIdentifier
|
|||
+ (CGFloat)defaultFontSize;
|
||||
- (void)setGuestAvatar:(NSString *)displayName;
|
||||
- (void)setBotAvatar;
|
||||
- (void)setChangelogAvatar;
|
||||
|
||||
@end
|
||||
|
|
|
@ -140,6 +140,11 @@
|
|||
[_avatarView setImageWithString:@">" color:guestAvatarColor circular:true];
|
||||
}
|
||||
|
||||
- (void)setChangelogAvatar
|
||||
{
|
||||
[_avatarView setImage:[UIImage imageNamed:@"changelog"]];
|
||||
}
|
||||
|
||||
+ (CGFloat)defaultFontSize
|
||||
{
|
||||
CGFloat pointSize = 16.0;
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "changelog.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "changelog@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "changelog@3x.png",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
Двоичные данные
VideoCalls/Images.xcassets/changelog.imageset/changelog.png
поставляемый
Normal file
Двоичные данные
VideoCalls/Images.xcassets/changelog.imageset/changelog.png
поставляемый
Normal file
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 1.2 KiB |
Двоичные данные
VideoCalls/Images.xcassets/changelog.imageset/changelog@2x.png
поставляемый
Normal file
Двоичные данные
VideoCalls/Images.xcassets/changelog.imageset/changelog@2x.png
поставляемый
Normal file
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 2.5 KiB |
Двоичные данные
VideoCalls/Images.xcassets/changelog.imageset/changelog@3x.png
поставляемый
Normal file
Двоичные данные
VideoCalls/Images.xcassets/changelog.imageset/changelog@3x.png
поставляемый
Normal file
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 3.6 KiB |
|
@ -223,6 +223,9 @@
|
|||
case kNCRoomTypePublic:
|
||||
[_titleView.image setImage:(_room.hasPassword) ? [UIImage imageNamed:@"public-password-bg"] : [UIImage imageNamed:@"public-bg"]];
|
||||
break;
|
||||
case kNCRoomTypeChangelog:
|
||||
[_titleView.image setImage:[UIImage imageNamed:@"changelog"]];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -818,7 +821,11 @@
|
|||
normalCell.titleLabel.text = ([message.actorDisplayName isEqualToString:@""]) ? @"Guest" : message.actorDisplayName;
|
||||
[normalCell setGuestAvatar:message.actorDisplayName];
|
||||
} else if ([message.actorType isEqualToString:@"bots"]) {
|
||||
[normalCell setBotAvatar];
|
||||
if ([message.actorId isEqualToString:@"changelog"]) {
|
||||
[normalCell setChangelogAvatar];
|
||||
} else {
|
||||
[normalCell setBotAvatar];
|
||||
}
|
||||
} else {
|
||||
[normalCell.avatarView setImageWithURLRequest:[[NCAPIController sharedInstance] createAvatarRequestForUser:message.actorId andSize:96]
|
||||
placeholderImage:nil success:nil failure:nil];
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
typedef enum NCRoomType {
|
||||
kNCRoomTypeOneToOne = 1,
|
||||
kNCRoomTypeGroup,
|
||||
kNCRoomTypePublic
|
||||
kNCRoomTypePublic,
|
||||
kNCRoomTypeChangelog
|
||||
} NCRoomType;
|
||||
|
||||
typedef enum NCRoomNotificationLevel {
|
||||
|
|
|
@ -89,7 +89,7 @@ NSString * const NCRoomObjectTypeSharePassword = @"share:password";
|
|||
|
||||
- (BOOL)shouldShowLastMessageActorName
|
||||
{
|
||||
return _type != kNCRoomTypeOneToOne && !_lastMessage.isSystemMessage;
|
||||
return !_lastMessage.isSystemMessage && _type != kNCRoomTypeOneToOne && _type != kNCRoomTypeChangelog;
|
||||
}
|
||||
|
||||
- (NSString *)deletionMessage
|
||||
|
|
|
@ -837,6 +837,13 @@ typedef enum ModificationError {
|
|||
[cell.roomImage setImage:(_room.hasPassword) ? [UIImage imageNamed:@"public-password-bg"] : [UIImage imageNamed:@"public-bg"]];
|
||||
break;
|
||||
|
||||
case kNCRoomTypeChangelog:
|
||||
{
|
||||
cell.roomNameTextField.text = _room.displayName;
|
||||
[cell.roomImage setImage:[UIImage imageNamed:@"changelog"]];
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1065,6 +1065,10 @@ API_AVAILABLE(ios(11.0)){
|
|||
[cell.roomImage setImage:(room.hasPassword) ? [UIImage imageNamed:@"public-password-bg"] : [UIImage imageNamed:@"public-bg"]];
|
||||
break;
|
||||
|
||||
case kNCRoomTypeChangelog:
|
||||
[cell.roomImage setImage:[UIImage imageNamed:@"changelog"]];
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче