zevlg / telega.el

GNU Emacs telegram client (unofficial)
https://zevlg.github.io/telega.el/
GNU General Public License v3.0
1.09k stars 85 forks source link

Can not switch topics using rootbuf #459

Closed aragaer closed 5 months ago

aragaer commented 5 months ago

Telega Setup

OS: Gentoo Linux Emacs: GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, X toolkit) Features: svg ffmpeg Telega: telega v0.8.240 (TDLib v1.8.24-d79bd4b) (telega-server v0.8.2) MELPA: 20240214.1600

Current Behavior

Choosing a topic in rootbuf opens the chatbuf centered on some message from that topic but doesn't enable the topic filter. Removing the second argument from telega-topic-goto function call in telega-topic-button-action partially fixes the behavior -- the filter is enabled, but unless the topic filter was already enabled, the chatbuf is again re-focused on the same message as before.

Steps to Reproduce

  1. Use TAB to open the list of topics of a chat with topics
  2. Use RET to choose a topic
  3. Expected result: chat is focused on either end of chat or last unread message and topic filter is enabled. Actual result: chat is focused on some message and topic filter is not enabled.