undo bad refactor
This commit is contained in:
parent
fe674e35fc
commit
281f229410
|
@ -178,7 +178,7 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
|
||||||
case event.SendMessageToGroupError:
|
case event.SendMessageToGroupError:
|
||||||
uiManager.AddSendMessageError(e.Data[event.GroupServer], e.Data[event.Signature], e.Data[event.Error])
|
uiManager.AddSendMessageError(e.Data[event.GroupServer], e.Data[event.Signature], e.Data[event.Error])
|
||||||
case event.SendMessageToPeerError:
|
case event.SendMessageToPeerError:
|
||||||
uiManager.AddSendMessageError(e.Data[event.RemotePeer], e.Data[event.eventID], e.Data[event.Error])
|
uiManager.AddSendMessageError(e.Data[event.RemotePeer], e.Data[event.EventID], e.Data[event.Error])
|
||||||
*/
|
*/
|
||||||
case event.PeerStateChange:
|
case event.PeerStateChange:
|
||||||
cxnState := connections.ConnectionStateToType[ev.Event.Data[event.ConnectionState]]
|
cxnState := connections.ConnectionStateToType[ev.Event.Data[event.ConnectionState]]
|
||||||
|
|
|
@ -198,7 +198,7 @@ func AddProfile(gcd *GrandCentralDispatcher, handle string) {
|
||||||
online, _ := p.GetAttribute(attr.GetLocalScope(constants.PeerOnline))
|
online, _ := p.GetAttribute(attr.GetLocalScope(constants.PeerOnline))
|
||||||
|
|
||||||
log.Debugf("AddProfile %v %v %v %v %v\n", handle, nick, picPath, tag, online)
|
log.Debugf("AddProfile %v %v %v %v %v\n", handle, nick, picPath, tag, online)
|
||||||
gcd.AddProfile(handle, nick, picPath, tag, online == Event.True)
|
gcd.AddProfile(handle, nick, picPath, tag, online == event.True)
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
/*
|
/*
|
||||||
|
@ -207,7 +207,7 @@ type manager struct {
|
||||||
profile string
|
profile string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Manager is a middleware helper for entities like peer Event listeners wishing to trigger ui changes (via the gcd)
|
// Manager is a middleware helper for entities like peer event listeners wishing to trigger ui changes (via the gcd)
|
||||||
// each manager is for one profile/peer
|
// each manager is for one profile/peer
|
||||||
// manager takes minimal arguments and builds the full struct of data (usually pulled from a cwtch peer) required to call the GCD to perform the ui action
|
// manager takes minimal arguments and builds the full struct of data (usually pulled from a cwtch peer) required to call the GCD to perform the ui action
|
||||||
// manager also performs call filtering based on UI state: users of manager can safely always call it on events and not have to worry about weather the relevant ui is active
|
// manager also performs call filtering based on UI state: users of manager can safely always call it on events and not have to worry about weather the relevant ui is active
|
||||||
|
|
Loading…
Reference in New Issue