mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-11 13:56:10 +10:00
better fakeID of conversation
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user