Closed Bug 1032870 Opened 10 years ago Closed 10 years ago

Notifications for new message in group chat is not working

Categories

(Instantbird Graveyard :: Conversation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: seeker_b4u, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release)
Build ID: 20140609182057

Steps to reproduce:

I have enabled below settings
       When receiving a new message
            -  Flash the taskbar item
            -  Notify of messages received in inactive windows

However when in group chat, none of the above events happen when a new message is sent by other group members (chat window is inactive)

Note that I have disabled "Sounds"

Is there any option to flash taskbar item or notify when a new message is sent in the group chat?


Actual results:

Either taskbar item or notification is received when a new message is sent in the group chat 


Expected results:

Either flash taskbar item or provide notification when a new message is sent in the group chat
This behaviour is intentional - you'll only get notified in group chats if someone actually mentions your nickname (i.e. if they are talking specifically to you).

To get the behaviour you want, you can try this add-on: https://addons.instantbird.org/en-US/instantbird/addon/341 but I'm not sure if it also works when sounds are disabled, so I've cc'd the author.
Thanks for CC'ing me. The mentioned add-on will play sounds on any new messages. It doesn't show a notification for them though.

The following add-on will only show popup notifications for Twitter (I can't remember why I wrote it, most likely someone just wanted or needed it) but it should be easy to change that to show notifications for every new message. Maybe I'll do that during the next days.

https://addons.instantbird.org/en-US/instantbird/addon/347
Thanks for the followup. I will wait for the updates to the below add-on
https://addons.instantbird.org/en-US/instantbird/addon/347
HI
I managed to develop the add-on on my own. 

Also, since it is important for me to review all the group chat messages immediately, i have included Conversations.focusConversation method so that chat window is forced to the top of the window when a new message arrives. 

I thought of flashing the taskbar when a new message arrives in the group chat (because notification disappears after few secs and its easy to miss), but i couldnt figure out how to flash the taskbar based on the below source code
http://dxr.mozilla.org/comm-central/source/im/modules

Anyways, below code meets my requirements :)

function newTextObserver(aSubject, aTopic, aData) {

    if (aTopic == "new-text" && Services.prefs.getBoolPref("messenger.options.notifyOfNewMessages")) {
      if (aSubject.incoming && !aSubject.system &&
          aSubject.conversation.isChat && !aSubject.containsNick) {
        
        //Show notifications for all new messages in group chat
       
        if ( !Conversations.isConversationWindowFocused() &&
             Interruptions.requestInterrupt(aTopic, aSubject, "notification")) {
          Notifications._showMessageNotification(aSubject);
          Conversations.focusConversation(aSubject.conversation);
        }
      
      }
      
    }
    return;
}


thanks
SK

PS: I am new to bugzilla and not sure if I should change the status of this bug. Please consider this bug as resolved and update the status accordingly
Fixed via an add-on.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
(In reply to seeker_b4u from comment #4)
> PS: I am new to bugzilla and not sure if I should change the status of this
> bug. Please consider this bug as resolved and update the status accordingly

Please do share your add-on with other users on addons.instantbird.org! If you do this, you could post a link to the add-on here for future reference.
You need to log in before you can comment on or make changes to this bug.