feat: rewrite requests to include events

This commit is contained in:
Paul Makles
2022-02-19 19:49:10 +00:00
parent 061af1f2c3
commit 489c2bdd87
25 changed files with 159 additions and 240 deletions

View File

@@ -12,7 +12,8 @@ pub async fn req(db: &Db, user: User, target: Ref, message: Ref) -> Result<Empty
return Err(Error::NotFound);
}
db.acknowledge_message(channel.id(), &user.id, &message.id)
channel
.ack(db, &user.id, &message.id)
.await
.map(|_| EmptyResponse)
}