Skip to content

Commit

Permalink
refactor: limit read and max-read
Browse files Browse the repository at this point in the history
close #627
  • Loading branch information
zapcannon87 committed Jan 22, 2021
1 parent 6584c30 commit 1662c45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions AVOS/AVOSCloudIM/Conversation/AVIMConversation.m
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,9 @@ - (id)objectForKeyedSubscript:(NSString *)key
- (void)fetchReceiptTimestampsInBackground
{
AVIMClient *client = self.imClient;
if (!client) {
if (!client ||
(self.convType == LCIMConvTypeTransient) ||
(self.convType == LCIMConvTypeSystem)) {
return;
}

Expand Down Expand Up @@ -1204,7 +1206,8 @@ - (void)unmuteWithCallback:(void (^)(BOOL, NSError *))callback
- (void)readInBackground
{
AVIMClient *client = self.imClient;
if (!client) {
if (!client ||
(self.convType == LCIMConvTypeTransient)) {
return;
}

Expand Down

0 comments on commit 1662c45

Please sign in to comment.