unwrap eventprofileenvelope #11

Merged
dan merged 2 commits from rinnmar16 into trunk 2021-03-16 22:16:37 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 1902944bc7 - Show all commits

View File

@ -246,11 +246,11 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
*/
}
json, _ := json.Marshal(downgrade(ev))
json, _ := json.Marshal(unwrap(ev))
return string(json)
}
func downgrade(original *EventProfileEnvelope) *event.Event {
func unwrap(original *EventProfileEnvelope) *event.Event {
unwrapped := &original.Event
unwrapped.Data["ProfileOnion"] = original.Profile
return unwrapped