feat: PUT /chats/:roomId/:mid

This commit is contained in:
Julian Lam
2021-12-20 11:30:43 -05:00
parent 140f9d2481
commit f48ed3658a
8 changed files with 58 additions and 69 deletions

View File

@@ -20,6 +20,7 @@ require('./rooms')(Messaging);
require('./unread')(Messaging);
require('./notifications')(Messaging);
Messaging.messageExists = async mid => db.exists(`message:${mid}`);
Messaging.getMessages = async (params) => {
const isNew = params.isNew || false;