better fakeID of conversation

This commit is contained in:
nixzhu
2015-09-15 21:48:10 +08:00
parent c5cdf08900
commit 7ad14f4dcd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -365,11 +365,11 @@ class Conversation: Object {
switch type {
case ConversationType.OneToOne.rawValue:
if let withFriend = withFriend {
return withFriend.userID
return "user" + withFriend.userID
}
case ConversationType.Group.rawValue:
if let withGroup = withGroup {
return withGroup.groupID
return "group" + withGroup.groupID
}
default:
break
+1 -1
View File
@@ -895,7 +895,7 @@ func syncMessageWithMessageInfo(messageInfo: JSONDictionary, inRealm realm: Real
// Do furtherAction after sync
if let sectionDateMessageID = sectionDateMessageID{
if let sectionDateMessageID = sectionDateMessageID {
furtherAction?(messageIDs: [sectionDateMessageID, messageID])
} else {
furtherAction?(messageIDs: [messageID])