summaryrefslogtreecommitdiffstats
path: root/app/authorization.go
diff options
context:
space:
mode:
authorJonathan <jonfritz@gmail.com>2017-09-05 16:39:07 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-09-05 16:39:07 -0400
commit016b5daa1cde1a147701aafce94f67057fbb7aa6 (patch)
treefd1e70b4790feeb6a3e26541192d5857a224d22e /app/authorization.go
parent2977b31a3942ac0e6bd2ad1c38f2c008037c54a6 (diff)
downloadchat-016b5daa1cde1a147701aafce94f67057fbb7aa6.tar.gz
chat-016b5daa1cde1a147701aafce94f67057fbb7aa6.tar.bz2
chat-016b5daa1cde1a147701aafce94f67057fbb7aa6.zip
PLT-7444: If there is activity in Mattermost before the email batch is sent, do not send the email (#7342)
* Changed email batching short-circuit logic to look at last viewed at timestamp in channel member struct instead of in user's status struct, since the latter is only updated if the user's status is set to online * Fixed unit tests * Reduced right-hand drift * Reduced total number of store calls by loading all channel member objects for user exactly once per team that the user received notifications for
Diffstat (limited to 'app/authorization.go')
0 files changed, 0 insertions, 0 deletions