Commit Graph

5 Commits

Author SHA1 Message Date
fang
5d3c60b30e
lib: support summarization of new groups backend
/lib/summarize now supports building summaries off of the new
/app/channels. If that agent is running, it will use the new
summarization logic. If it's not, it will continue on as it has.
2023-11-16 21:09:42 +01:00
fang
3b3797135a
lib: avoid crash during activity summarization
There is a (somewhat poorly understood) case where the group associated
with a chat may not actually contain that chat in its channels listing.

Here, instead of assuming the channel is always present, we ask for it
more gently, and simply skip to the next-most-active channel if it turns
out to be missing.

We also remove a stray debug printf, and add a trace print in case
anything else goes wrong here.
2023-07-28 20:43:13 +02:00
fang
166f70578d
various: remove unused /sur/hark dependency 2023-07-24 21:44:06 +02:00
fang
fa5cc3546d
lib: clarify magic numbers in /lib/summarize 2023-07-18 22:50:47 +02:00
fang
2b1e185469
lib: dumb summarization utilities for groups
Helps us retrieve simple numerical summaries of groups (in)activity,
such as number of messages sent, amount of unreads, most active group,
etc.
2023-07-14 18:06:57 +02:00