message_view: Only show just to unread banner in conversation views.

Showing this banner in every view can be annoying. As a first step,
we only show it in conversation view to reduce the banner spam.
This commit is contained in:
Aman Agrawal
2025-03-25 20:26:49 +05:30
committed by Tim Abbott
parent 60e166bcd0
commit 6c81ff61ee

View File

@@ -780,7 +780,10 @@ export let show = (raw_terms: NarrowTerm[], show_opts: ShowMessageViewOpts): voi
select_opts,
then_select_offset,
);
if (id_info.first_unread_msg_id_pending_server_verification) {
if (
id_info.first_unread_msg_id_pending_server_verification &&
filter.is_conversation_view()
) {
const params = message_fetch.get_parameters_for_message_fetch_api({
anchor: "first_unread",
num_before: 0,