Scroll to end when channel is selected
This commit is contained in:
parent
bf0c54e555
commit
f399c55383
1 changed files with 1 additions and 0 deletions
|
|
@ -191,6 +191,7 @@ func (gt *GuildsTree) onSelected(n *tview.TreeNode) {
|
||||||
gt.createChannelNodes(n, cs)
|
gt.createChannelNodes(n, cs)
|
||||||
case discord.ChannelID:
|
case discord.ChannelID:
|
||||||
mainFlex.messagesText.drawMsgs(ref)
|
mainFlex.messagesText.drawMsgs(ref)
|
||||||
|
mainFlex.messagesText.ScrollToEnd()
|
||||||
|
|
||||||
c, err := discordState.Cabinet.Channel(ref)
|
c, err := discordState.Cabinet.Channel(ref)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue