Associate messages with their sender, fetching senders if necessary

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-08-25 14:20:03 -06:00
co-authored by Max Brunsfeld
parent 77c7fa53da
commit 8f86fa1ccd
7 changed files with 207 additions and 44 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ impl Db {
FROM
users, channel_memberships
WHERE
users.id IN $1 AND
users.id = ANY ($1) AND
channel_memberships.user_id = users.id AND
channel_memberships.channel_id IN (
SELECT channel_id