Scroll to end when channel is selected

This commit is contained in:
ayn2op 2024-04-03 15:43:04 +05:30
parent bf0c54e555
commit f399c55383

View file

@ -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 {