Skip to content

Commit

Permalink
[fix] 下拉历史消息覆盖掉新消息
Browse files Browse the repository at this point in the history
  • Loading branch information
IanLuo committed Dec 6, 2016
1 parent e0c778a commit 0b7ea9e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,7 @@ - (NSInteger)saveToCellModelsWithMessages:(NSArray *)newMessages isInsertAtFirst
switch (position) {
case 1: // top
[self insertMessageDateCellAtFirstWithCellModel:[newCellModels firstObject]]; // 如果需要,顶部插入时间
[self addTipCellModelWithTips:@"Older" enableLinesDisplay:NO];
self.cellModels = newCellModels;
self.cellModels = [[newCellModels arrayByAddingObjectsFromArray:self.cellModels] mutableCopy];
break;
case 0: // bottom
[self addMessageDateCellAtLastWithCurrentCellModel:[newCellModels lastObject]]; // 如果需要,底部插入时间
Expand Down

0 comments on commit 0b7ea9e

Please sign in to comment.