mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 06:03:07 +02:00
Fix bug
This commit is contained in:
parent
ab995930ff
commit
712a90d502
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ export default define(meta, async (ps, user) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message.recipientId) {
|
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);
|
if (e.id === 'e140a4bf-49ce-4fb6-b67c-b78dadf6b52f') throw new ApiError(meta.errors.noSuchMessage);
|
||||||
throw e;
|
throw e;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue