Skip to content
This repository was archived by the owner on Mar 9, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/UIBubbleTableView.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ typedef enum _NSBubbleTypingType
@property (nonatomic) NSTimeInterval snapInterval;
@property (nonatomic) NSBubbleTypingType typingBubble;
@property (nonatomic) BOOL showAvatars;
@property (nonatomic) BOOL showOnlySomeoneElseAvatar;

@end
2 changes: 2 additions & 0 deletions src/UIBubbleTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ @implementation UIBubbleTableView
@synthesize bubbleSection = _bubbleSection;
@synthesize typingBubble = _typingBubble;
@synthesize showAvatars = _showAvatars;
@synthesize showOnlySomeoneElseAvatar = _showOnlySomeoneElseAvatar;

#pragma mark - Initializators

Expand Down Expand Up @@ -226,6 +227,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N

cell.data = data;
cell.showAvatar = self.showAvatars;
cell.showOnlySomeoneElseAvatar = self.showOnlySomeoneElseAvatar;

return cell;
}
Expand Down
1 change: 1 addition & 0 deletions src/UIBubbleTableViewCell.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@

@property (nonatomic, strong) NSBubbleData *data;
@property (nonatomic) BOOL showAvatar;
@property (nonatomic) BOOL showOnlySomeoneElseAvatar;

@end
3 changes: 2 additions & 1 deletion src/UIBubbleTableViewCell.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ @implementation UIBubbleTableViewCell
@synthesize customView = _customView;
@synthesize bubbleImage = _bubbleImage;
@synthesize showAvatar = _showAvatar;
@synthesize showOnlySomeoneElseAvatar = _showOnlySomeoneElseAvatar;
@synthesize avatarImage = _avatarImage;

- (void)setFrame:(CGRect)frame
Expand Down Expand Up @@ -76,7 +77,7 @@ - (void) setupInternalData
CGFloat y = 0;

// Adjusting the x coordinate for avatar
if (self.showAvatar)
if (self.showAvatar || (self.showOnlySomeoneElseAvatar && type == BubbleTypeSomeoneElse))
{
[self.avatarImage removeFromSuperview];
#if !__has_feature(objc_arc)
Expand Down