refactor(cmd): chain method calls
This commit is contained in:
parent
beb1dbc42d
commit
9ab5b2317b
1 changed files with 3 additions and 2 deletions
|
|
@ -193,8 +193,9 @@ func (gt *guildsTree) onSelected(node *tview.TreeNode) {
|
|||
}
|
||||
|
||||
app.messagesText.drawMsgs(channel.ID)
|
||||
app.messagesText.ScrollToEnd()
|
||||
app.messagesText.SetTitle(gt.channelToString(*channel))
|
||||
app.messagesText.
|
||||
ScrollToEnd().
|
||||
SetTitle(gt.channelToString(*channel))
|
||||
|
||||
gt.selectedChannelID = channel.ID
|
||||
gt.selectedGuildID = channel.GuildID
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue