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

Sort marked messages by timestamp before forwarding #271

Closed aragaer closed 3 years ago

aragaer commented 3 years ago

Current Behavior

When forwarding multiple messages, order is determined by order of marking them, not "actual" order.

Steps to Reproduce

  1. Mark a message
  2. Mark another message that is actually earlier
  3. Forward both messages to some chat Expected result: Messages are delivered in the same order they were originally. Actual result: Messages are delivered in the order they were marked.

Possible Solution

When forwarding first sort messages by timestamp.