Show unread messages on start

  1. Write current time on disk when senpai closes
  2. Read it when senpai opens again
  3. Show buffers that have history after the timestamp as unread

Question: What if those messages where read on another device?

Assigned to
1 year, 5 months ago
3 months ago
enhancement ui

~taiite 1 year, 5 months ago

Actually this is not correct, since the user may have unread messages when closing the client.

There should be a timestamp per channel (could also be a msgid?)

~taiite 6 months ago

~taiite 3 months ago*

Now that BOUNCER support has landed[0], it should be possible to do this:

  1. save last-opened timestamp for each buffer (until READ is ready)
  2. on connect, for each buffer, fetch all history from the last-opened timestamp
  3. also on connect, find out whether queries have been opened with CHATHISTORY TARGETS[1] and fetch their history

[0] https://git.sr.ht/~taiite/senpai/commit/9fb4378753ddec61a504a0dec403f40d6def7e90

[1] https://ircv3.net/specs/extensions/chathistory#targets

Register here or Log in to comment, or comment via email.