-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click on notification doesn't redirect to the right tab (team) #321
Comments
Not reproduced on Windows 10, known issue in Windows 7. I thought this behaviour used to work for OS X though, so adding a bug label for it, |
@guyguy333 To make sure, would you check whether you are using the latest release? v3.4.0-rc1 had a bug which is related to notifications. If you are using correct version, please show console output when clicking notifications ( |
Same problem on linux Mint 18. When clicking on notification, current tab switch to team/channel instead of relevant tab switching to channel. |
Did it use to work for you @St-Ex and @guyguy333, or is this a new problem with Desktop App v3.4? Also, if you're able to provide a console output, that would be great:
This should print messages on the developer console, which will make it easier for us to troubleshoot the problems. |
I don't remember this ever working. This seems to happen when the desired channel doesn't exist on the current tab. This works correctly with direct message if your mate is on both team. In fact there is no stack trace. But the current tab is switching toward the teams which contains the notificated channel. Here a more detailed exemple
|
I think the problem is on index.jsx var handleNotificationClick = function() {
thisObj.handleSelect(index);
} We do not look for the tab to select. However, it will be hard because we have to change the notification onclick event to add the notification url but we don't have it. It's inside the chorme notification itself. |
Hmm...the feature works fine in my Mac.
Please let me confirm, does the two teams exist on the same server? Or different servers? In my app, there are two teams:
|
Both on same server. I just discovered something. I add some logs after notification : notification: function(title, options) {
ipc.send('notified', {
title: title,
options: options
});
console.dir('notification-log',this)
}, I can clearly see 2 notifications, on per tab being log |
Exactly the same problem occurs with to firefox tab opened on 2 different team from the same server. I will open an issue on mattermost/plateform. Exact problem is : receiving notification from another team on the same server |
Much appreciated, thanks @St-Ex! |
Jira ticket was created by the Mattermost team to fix on the server side, adding here for us to track: https://mattermost.atlassian.net/browse/PLT-4334 |
@guyguy333 This issue is resolved in Mattermost Server 3.6, which will release on January 16th. Thanks for all your help @St-Ex ! |
Summary
When you get a notification with a new message and you click on it, instead of switching to the right tab (team) in the desktop app, it changes the team in the previously active team (tab).
Steps to reproduce
Operating System: OS X 10.11.6
Mattermost Desktop App version: 3.4.0
Mattermost Server version: 3.4.0
Adds two teams to Mattermost desktop. Each team appears in a different tab in the desktop app. Select a tab and wait a notification from the other team. Click on it. The tab will not change, it will instead switch team in the current tab.
Expected behavior
When you click on the notification, it should switch tab focus instead of changing team in the current tab.
Observed behavior
Currently, it changes team in the tab (leading to two tabs with the same team) who you click on the notification.
The text was updated successfully, but these errors were encountered: