Skip to content

Commit

Permalink
Merge pull request #532 from zapcannon87/master
Browse files Browse the repository at this point in the history
Release v11.4.6
  • Loading branch information
zapcannon87 authored Oct 29, 2018
2 parents f29d4ea + c9f51e3 commit f2f473e
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 29 deletions.
2 changes: 1 addition & 1 deletion AVOS/AVOSCloud/UserAgent.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define SDK_VERSION @"v11.4.5"
#define SDK_VERSION @"v11.4.6"
57 changes: 33 additions & 24 deletions AVOS/AVOSCloudIM/Client/AVIMClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -1938,30 +1938,6 @@ - (AVIMConversation *)conversationWithKeyedConversation:(AVIMKeyedConversation *
if (keyedConversation.updateAt) {
rawDataDic[AVIMConversationKeyUpdatedAt] = keyedConversation.updateAt;
}
if (keyedConversation.lastMessage) {
AVIMMessage *message = keyedConversation.lastMessage;
if (message.content) {
rawDataDic[AVIMConversationKeyLastMessageContent] = message.content;
}
if (message.messageId) {
rawDataDic[AVIMConversationKeyLastMessageId] = message.messageId;
}
if (message.clientId) {
rawDataDic[AVIMConversationKeyLastMessageFrom] = message.clientId;
}
if (message.sendTimestamp) {
rawDataDic[AVIMConversationKeyLastMessageTimestamp] = @(message.sendTimestamp);
}
if (message.updatedAt) {
rawDataDic[AVIMConversationKeyLastMessagePatchTimestamp] = @(message.updatedAt.timeIntervalSince1970 * 1000.0);
}
if (message.mentionAll) {
rawDataDic[AVIMConversationKeyLastMessageMentionAll] = @(message.mentionAll);
}
if (message.mentionList) {
rawDataDic[AVIMConversationKeyLastMessageMentionPids] = message.mentionList;
}
}
if (keyedConversation.name) {
rawDataDic[AVIMConversationKeyName] = keyedConversation.name;
}
Expand Down Expand Up @@ -1993,6 +1969,39 @@ - (AVIMConversation *)conversationWithKeyedConversation:(AVIMKeyedConversation *
rawDataDic[AVIMConversationKeyMutedMembers] = @(keyedConversation.muted);
}
}
if (keyedConversation.lastMessage) {
AVIMMessage *message = keyedConversation.lastMessage;
[rawDataDic removeObjectsForKeys:({
@[AVIMConversationKeyLastMessageContent,
AVIMConversationKeyLastMessageId,
AVIMConversationKeyLastMessageFrom,
AVIMConversationKeyLastMessageTimestamp,
AVIMConversationKeyLastMessagePatchTimestamp,
AVIMConversationKeyLastMessageMentionAll,
AVIMConversationKeyLastMessageMentionPids];
})];
if (message.content) {
rawDataDic[AVIMConversationKeyLastMessageContent] = message.content;
}
if (message.messageId) {
rawDataDic[AVIMConversationKeyLastMessageId] = message.messageId;
}
if (message.clientId) {
rawDataDic[AVIMConversationKeyLastMessageFrom] = message.clientId;
}
if (message.sendTimestamp) {
rawDataDic[AVIMConversationKeyLastMessageTimestamp] = @(message.sendTimestamp);
}
if (message.updatedAt) {
rawDataDic[AVIMConversationKeyLastMessagePatchTimestamp] = @(message.updatedAt.timeIntervalSince1970 * 1000.0);
}
if (message.mentionAll) {
rawDataDic[AVIMConversationKeyLastMessageMentionAll] = @(message.mentionAll);
}
if (message.mentionList) {
rawDataDic[AVIMConversationKeyLastMessageMentionPids] = message.mentionList;
}
}
if (!conversationId) {
return nil;
}
Expand Down
2 changes: 1 addition & 1 deletion AVOS/AVOSCloudIMTests/Swift/AVIMConversationTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class AVIMConversationTestCase: LCIMTestBase {
}
})
} else {
semaphore.decrement()
semaphore.decrement(2)
XCTFail()
}
})
Expand Down
2 changes: 1 addition & 1 deletion AVOSCloud.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AVOSCloud'
s.version = '11.4.5'
s.version = '11.4.6'
s.homepage = 'https://leancloud.cn/'
s.summary = 'LeanCloud Objective-C SDK'
s.authors = 'LeanCloud'
Expand Down
2 changes: 1 addition & 1 deletion AVOSCloudIM.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AVOSCloudIM'
s.version = '11.4.5'
s.version = '11.4.6'
s.homepage = 'https://leancloud.cn/'
s.summary = 'LeanCloud IM Objective-C SDK'
s.authors = 'LeanCloud'
Expand Down
2 changes: 1 addition & 1 deletion AVOSCloudLiveQuery.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AVOSCloudLiveQuery'
s.version = '11.4.5'
s.version = '11.4.6'
s.homepage = 'https://leancloud.cn/'
s.summary = 'LeanCloud LiveQuery Objective-C SDK'
s.authors = 'LeanCloud'
Expand Down

0 comments on commit f2f473e

Please sign in to comment.