[#323] Resolve "don't count INFO commands from sysadmins"
Closes #323 (closed)
context
- sysadmins ping channels with
INFO
as an informal health checks very frequently. - Counting these pings as usages prevents us from easily detecting stale channels, by artificially increasing the value of
messageCounts.updatedAt
that we use as a proxy for last usage.
changes
- add
repositories.channel.isSysadmin
: detects whether a given phone number is an admin of the support channel (and thus a sysadmin) - use
isSysadmin
to addshouldCount
guard indispatcher.messenger.respond
Edited by aguestuser