Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
fix(server): record relation in both directions on private message
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doe committed Dec 11, 2015
1 parent e831adb commit c1ce26e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ trait DialogCommandHandlers extends UpdateCounters with PeersImplicits {
}

protected def ackSendMessage(state: DialogState, sm: SendMessage): Unit = {
if (peer.typ == PeerType.Private) SocialManager.recordRelation(sm.origin.id, userId)
if (peer.typ == PeerType.Private) {
SocialManager.recordRelation(sm.origin.id, userId)
SocialManager.recordRelation(userId, sm.origin.id)
}

deliveryExt
.receiverDelivery(userId, sm.origin.id, peer, sm.randomId, sm.date, sm.message, sm.isFat)
Expand Down

0 comments on commit c1ce26e

Please sign in to comment.