This commit is contained in:
syuilo 2020-02-05 21:41:54 +09:00
parent a9e9fe04ac
commit e26bb84333

View file

@ -44,7 +44,7 @@ export default define(meta, async (ps, user) => {
}
if (message.recipientId) {
await readUserMessagingMessage(user.id, message.recipientId, [message.id]).catch(e => {
await readUserMessagingMessage(user.id, message.userId, [message.id]).catch(e => {
if (e.id === 'e140a4bf-49ce-4fb6-b67c-b78dadf6b52f') throw new ApiError(meta.errors.noSuchMessage);
throw e;
});