From 8970786048c354098e9cf5a16674715be1a443e7 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Tue, 3 Oct 2023 11:44:45 +0000 Subject: [PATCH] read_receipts: Remove unnecessary popovers.hide_all call. Read receipts can either hide by clicking or pressing escape button. Since clicking already hides popovers and escape keypress call `popovers.hide_all` separately, we don't need to call it again. --- web/src/read_receipts.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/web/src/read_receipts.js b/web/src/read_receipts.js index f059ddb853..c45003dfed 100644 --- a/web/src/read_receipts.js +++ b/web/src/read_receipts.js @@ -10,7 +10,6 @@ import * as loading from "./loading"; import * as message_store from "./message_store"; import * as overlays from "./overlays"; import * as people from "./people"; -import * as popovers from "./popovers"; import * as ui_report from "./ui_report"; export function show_user_list(message_id) { @@ -79,9 +78,5 @@ export function show_user_list(message_id) { }); } }, - on_hide() { - // Ensure any user info popovers are closed - popovers.hide_all(); - }, }); }