From bec583f96a30c3256af83f673ab77a884fc3c8c6 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 12 Jan 2020 17:16:18 +0200 Subject: [PATCH] search: don't throw an error if the search results message is removed before the reactions are removed --- backend/src/plugins/Utility.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility.ts b/backend/src/plugins/Utility.ts index 2cbcd8aa..ca4c308d 100644 --- a/backend/src/plugins/Utility.ts +++ b/backend/src/plugins/Utility.ts @@ -608,7 +608,7 @@ export class UtilityPlugin extends ZeppelinPlugin { }); clearReactionsFn = async () => { - searchMsg.removeReactions(); + searchMsg.removeReactions().catch(noop); removeListenerFn(); }; }