undo bad refactor

This commit is contained in:
erinn 2021-03-16 13:44:20 -07:00
parent fe674e35fc
commit 281f229410
2 changed files with 3 additions and 3 deletions

View File

@ -178,7 +178,7 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
case event.SendMessageToGroupError:
uiManager.AddSendMessageError(e.Data[event.GroupServer], e.Data[event.Signature], e.Data[event.Error])
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:
cxnState := connections.ConnectionStateToType[ev.Event.Data[event.ConnectionState]]

View File

@ -198,7 +198,7 @@ func AddProfile(gcd *GrandCentralDispatcher, handle string) {
online, _ := p.GetAttribute(attr.GetLocalScope(constants.PeerOnline))
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
}
// 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
// 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