From 79c51b0e6d2e090ec0bc0b81b703bb8378676306 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 20 Apr 2023 15:18:51 -0700 Subject: [PATCH] Add Conversation info in UCA --- extensions/profile_value.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/extensions/profile_value.go b/extensions/profile_value.go index 254e288..4e62e2f 100644 --- a/extensions/profile_value.go +++ b/extensions/profile_value.go @@ -83,9 +83,11 @@ func (pne ProfileValueExtension) OnContactReceiveValue(profile peer.CwtchPeer, c // Finally publish an update for listeners to react to. scope, zone, zpath := szp.GetScopeZonePath() profile.PublishEvent(event.NewEvent(event.UpdatedConversationAttribute, map[event.Field]string{ - event.Scope: string(scope), - event.Path: string(zone.ConstructZonedPath(zpath)), - event.Data: value, + event.Scope: string(scope), + event.Path: string(zone.ConstructZonedPath(zpath)), + event.Data: value, + event.RemotePeer: conversation.Handle, + event.ConversationID: strconv.Itoa(conversation.ID), })) } }