Merge pull request 'unwrap eventprofileenvelope' (#11) from rinnmar16 into trunk
Reviewed-on: #11
This commit is contained in:
commit
eb06bdd19a
|
@ -246,10 +246,16 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
json, _ := json.Marshal(ev)
|
json, _ := json.Marshal(unwrap(ev))
|
||||||
return string(json)
|
return string(json)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func unwrap(original *EventProfileEnvelope) *event.Event {
|
||||||
|
unwrapped := &original.Event
|
||||||
|
unwrapped.Data["ProfileOnion"] = original.Profile
|
||||||
|
return unwrapped
|
||||||
|
}
|
||||||
|
|
||||||
func (eh *EventHandler) startHandlingPeer(onion string) {
|
func (eh *EventHandler) startHandlingPeer(onion string) {
|
||||||
eventBus := eh.app.GetEventBus(onion)
|
eventBus := eh.app.GetEventBus(onion)
|
||||||
q := event.NewQueue()
|
q := event.NewQueue()
|
||||||
|
|
Loading…
Reference in New Issue