unwrap eventprofileenvelope
This commit is contained in:
parent
6e4547c8bb
commit
1902944bc7
|
@ -246,11 +246,11 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
json, _ := json.Marshal(downgrade(ev))
|
json, _ := json.Marshal(unwrap(ev))
|
||||||
return string(json)
|
return string(json)
|
||||||
}
|
}
|
||||||
|
|
||||||
func downgrade(original *EventProfileEnvelope) *event.Event {
|
func unwrap(original *EventProfileEnvelope) *event.Event {
|
||||||
unwrapped := &original.Event
|
unwrapped := &original.Event
|
||||||
unwrapped.Data["ProfileOnion"] = original.Profile
|
unwrapped.Data["ProfileOnion"] = original.Profile
|
||||||
return unwrapped
|
return unwrapped
|
||||||
|
|
Loading…
Reference in New Issue