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, 11 months ago
21 hours ago
enhancement ui

~taiite 1 year, 11 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 1 year, 1 month ago

~taiite 9 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

~delthas REPORTED FIXED 21 hours ago

Looks to be done now.

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