This commit is contained in:
fmodf 2024-07-02 08:32:23 +02:00
parent 58b69e7aa2
commit 9329cd3ab5

View file

@ -275,7 +275,7 @@ private extension DatabaseMiddleware {
.tracking(
Message
.filter(
Column("to") == chat.account ||
(Column("to") == chat.account && Column("from") == chat.participant) ||
(Column("from") == chat.account && Column("to") == chat.participant)
)
.order(Column("date").desc)