Durable record of a conversation the client raised by itself

Featurekamo-shared-library
Shipped
10 Agosti 2026, 21:03 UTC
Author
Kamo
Commit
32933cd

MediaSessionMember gains AUTO_OPENED_AT, beside msgIdLastViewed because it is the same grain — a fact about one member's relationship to one session. That one answers "how much have they read"; this one answers "have they already been shown this, unasked". It replaces a per-tab sessionStorage flag, which was not a record of anything: a second device re-opened every conversation the first had already popped, and clearing storage lost the fact entirely. findChatSessionsToAutoOpen returns the sessions holding something the member has not read where something has arrived since the last raise — so a conversation deliberately left unread stops re-opening on every load but comes back when a genuinely new message lands. Chat sessions only; support tickets have their own handover. The member's own messages are excluded, and a dangling msgIdLastViewed pointer counts as unread rather than as caught-up, because a scalar subquery over a vanished row yields NULL and would read as permanently read.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei