From b65cc2935a82781d5486e33dfa46471a06145969 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 13 Sep 2022 19:37:38 -0700 Subject: [PATCH] only scroll to bottom in messaging IF in DM --- packages/client/src/pages/messaging/messaging-room.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/messaging/messaging-room.vue b/packages/client/src/pages/messaging/messaging-room.vue index bbc4f5e40..fb0b4c437 100644 --- a/packages/client/src/pages/messaging/messaging-room.vue +++ b/packages/client/src/pages/messaging/messaging-room.vue @@ -240,7 +240,9 @@ function onDeleted(id) { } function thisScrollToBottom() { - scrollToBottom($$(rootEl).value, { behavior: 'smooth' }); + if (window.location.href.includes('my/messaging/')) { + scrollToBottom($$(rootEl).value, { behavior: 'smooth' }); + } } function onIndicatorClick() {