Skip to content

Commit

Permalink
Drop unecessary await
Browse files Browse the repository at this point in the history
  • Loading branch information
7PH committed Jan 12, 2025
1 parent f3471a6 commit 2bd5444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/server/plugins/core/room/MessagePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class MessagePlugin extends RoomPlugin {
const quoteId = parseInt(quoteMatch[1]);

// Try to find message in room message cache
quoted = await this.room.getMessageById(quoteId);
quoted = this.room.getMessageById(quoteId);

// Otherwise, try to find the quoted message in the database
quoted = quoted || (await MessageController.getMessageById(quoteId, false));
Expand Down

0 comments on commit 2bd5444

Please sign in to comment.