다이렉트 메시지(DM)의 채팅 아이콘 배지 수가 표시되지 않는 문제

Hello,
I’ve encountered an issue with Direct Messages (DMs) in my Discourse forum and would appreciate some guidance.

Problem Description

Sometimes when another user sends me a direct message:

  • I correctly receive a browser push notification.
  • However, the chat icon in the top navigation bar does not display any badge count (e.g., “1”).
  • To see the new message, I have to manually click on the chat icon and open the conversation.

This issue does not happen consistently—it occurs intermittently.

Environment and Details

  • Discourse version: Latest stable release
  • Browser: Microsoft Edge (latest version) on Windows 10
  • Plugins: No plugins installed that affect chat or notifications
  • Multiple devices: I am logged into my account on several devices
  • Observed pattern:
    • On one occasion, I received a new DM but the chat icon did not show any badge.
    • When I logged in with another account and sent myself a test message from a different browser, the chat icon suddenly updated and displayed the correct badge count for both messages (the earlier one and the new one).
    • The user whose message did not trigger the badge was a newly registered account (only a few hours old). I am not sure if this is related.

Attachments

I’ve attached screenshots showing the notification behavior and my settings for clarity.

Expected Behavior

Whenever I receive a new DM, I expect the chat icon to always display the correct badge count, regardless of whether the sender is a newly registered user or whether I’m logged in on multiple devices.

Is this a known bug, or could it be related to a specific configuration?



03

3개의 좋아요

I also sometimes find new DMs in my messages here even though there is no dot displayed in the sidebar and no number at the top on the chat icon. Nevertheless, the “last visit” line clearly indicates that these messages are new to me.

But I have not yet been able to identify when this happens. The only thing I know for sure is that I was always logged out when this happened.

In my case, the user whose message didn’t trigger a notification is an admin, so I don’t think the fact that you encountered it with a new user is relevant.

Do you use the DiscourseHub app? I wondered if that is involved. If you don’t use the app, I could probably rule it out.

2개의 좋아요

Thank you very much for joining the discussion and sharing your experience :folded_hands:

I’ve had exactly the same issue, except that I was not logged out when it happened. Still, the new message appeared without any badge on the chat icon—I only noticed it after manually opening the chat section.

I’ve installed the DiscourseHub app on my phone just for testing purposes, but I don’t actively use it. The issue I described occurred on Windows, using the Edge browser.

Happy to provide more details if needed.

2개의 좋아요

Not sure if this is helpful, but it just happened again in a DM here on Meta. I was not online when the message was sent. It did not show in Discourse Hub. No indicator after logging in. I only noticed that a different user was at the top of the DM chats in my sidebar.

2개의 좋아요

또 몇 개의 직접 메시지 알림을 놓친 후, JammyDodger와 저는 패턴을 발견했습니다 :partying_face:

메시지가 다른 메시지에 대한 답장인 경우 알림이 표시되지 않습니다.

예시:
다음은 Nat이 나에게 보낸 3개의 채팅 메시지입니다:

아침에 이메일 알림을 2개 받았습니다.


두 번째 메시지에는 이메일 알림이 없는데, 이 메시지는 이전 메시지에 대한 답장입니다.
헤더의 아이콘에 새 채팅 메시지 2건에 대한 알림이 표시되는 스크린샷도 있습니다. (배지에 대한 알림이 없어서 다행이라 알림 화면을 스크린샷으로 찍었습니다. 채팅 알림 수가 포함되어 있는 것은 행운의 일치입니다.)

즉, 문제는 이렇습니다: Nat이 우리 채팅에서 다른 메시지에 답장할 때마다 알림을 받지 못합니다 :confused:

1개의 좋아요

간단한 해결책: @nat 님이 채팅 메시지에 답장하는 걸 그만두세요 :sweat_smile:

확인해 보겠습니다 :eyes:

3개의 좋아요

그건 상당히 복잡했어요 :exploding_head:

핵심은, 스레딩이 비활성화된 DM(기본 설정)에서 답글이 내부적으로 답글 체인을 추적하기 위해 스레드를 생성하기 때문에 "읽지 않음"으로 올바르게 집계되지 않는다는 점입니다.

4개의 좋아요

쉽다고 한 사람은 없잖아요 :wink: 알림이 누락된 메시지들이 공통적으로 어떤 특징을 가지고 있는지 알아내는 데 4개월 이상 걸렸어요.

1개의 좋아요

이 수정 사항이 ESR에 포함되었다면 좋았을 텐데.

1개의 좋아요

늦어도 안 늦으면 안 되는 것보다 낫지?! :sweat_smile:

PR이 승인되었습니다 :white_check_mark: 병합되었습니다 :git_merged:

3개의 좋아요

이 주제는 2일 후 자동으로 닫혔습니다. 새로운 답변은 더 이상 허용되지 않습니다.