-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CHATHISTORY: consider an API to discover DM correspondents #444
Comments
Also, the fact that "*" is an invalid chathistory batch name i guess? or was it resolved? |
That's being considered on #437. I thought this merited a separate discussion thread. |
First pass:
|
If we can agree on an API here, discussion is trending in the direction of it replacing the |
Looks like a good start. Some thoughts:
|
Thanks!
|
Hrm, I'd rather keep it simple if possible…
Ah, right, this stuff is confusing.
OK, makes sense.
Yeah. Either way, it's good to leave the door open to other criteria by prefixing the timestamp with |
Discussion continues at #450 |
This is related to, but distinct from #438. It comes out of discussion on #434 (and out-of-band with @kylef).
The previous de facto standard for retrieving history was znc.in/playback.
draft/chathistory
is at full feature parity with this, except for one feature: theLIST
command, which "lists available buffers" (including joined channels and "active" DM correspondents).This functionality cannot be imported directly into
draft/chathistory
because of the design assumption that all client synchronization state must be stored on the client side: therefore, the server has no concept of "active buffers" or "open queries". The set of DM correspondents is only defined relative to a time window.However, the lack of such an API creates a problem: DMs from one user get "buried" behind another, so the client has to retrieve all missed DMs before it can surface new DMs of interest from previously unknown correspondents.
We can design a new API for this (and indexes to support it), it just has to be explicitly time-relative (or potentially msgid-relative?), and we have to verify that it can be efficiently implemented on the server side.
The text was updated successfully, but these errors were encountered: