Skip to content

Commit

Permalink
Fix error in refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Mar 18, 2024
1 parent 9463998 commit f5f7207
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions cmd/actor/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func initConfig() {
config.InitCommonFlags()
config.InitActorFlags()
pflag.Parse()
config.SetProfile(config.Profile())
config.Init()

if config.GenerateFlag() {
Expand Down
8 changes: 0 additions & 8 deletions ui/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,9 @@ func (ui *ChatUI) handleRefreshCommand(args []string) {
}

func (ui *ChatUI) handleRefresh() {
ui.displayDebugMessage("Looking up nick for " + ui.e.DID.Id)
nick, err := peer.GetNickForID(ui.e.DID.Id)
if err != nil {
ui.displaySystemMessage(fmt.Sprintf("Error looking up nick: %s", err))
}
ui.displayDebugMessage("Found nick " + nick)
ui.e.SetNick(nick)
ui.refreshPeers()
ui.msgBox.Clear()
ui.setupInputField()
ui.displayDebugMessage("Setting title to " + ui.e.Nick)
ui.msgBox.SetTitle(ui.e.Nick)
ui.app.Draw()
}
Expand Down

0 comments on commit f5f7207

Please sign in to comment.