Explorar el Código

Scroll to end when channel is selected

ayn2op hace 2 años
padre
commit
f399c55383
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      cmd/guilds_tree.go

+ 1 - 0
cmd/guilds_tree.go

@@ -191,6 +191,7 @@ func (gt *GuildsTree) onSelected(n *tview.TreeNode) {
 		gt.createChannelNodes(n, cs)
 	case discord.ChannelID:
 		mainFlex.messagesText.drawMsgs(ref)
+		mainFlex.messagesText.ScrollToEnd()
 
 		c, err := discordState.Cabinet.Channel(ref)
 		if err != nil {