Fixed issue with notifications during Socializer startup

This commit is contained in:
Manuel Cortez 2019-11-25 08:33:57 -06:00
parent c19fbf40a0
commit c468147db0
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
### bugfixes ### bugfixes
* Fixed an error that was making socializer unable to render correctly certain Links containing uppercase letters (such as yandex.disk shared links). Before, those links were giving 404 errors when pressed, now they should work normally. This error was present in wall posts, comments, topics and chat messages. * Fixed an error that was making socializer unable to render correctly certain Links containing uppercase letters (such as yandex.disk shared links). Before, those links were giving 404 errors when pressed, now they should work normally. This error was present in wall posts, comments, topics and chat messages.
* Fixed an error related to notifications in Socializer. Before, the "online now" notification could break the Socializer interface, making it unable to load the chat in real time.
### Changes ### Changes

View File

@ -504,7 +504,7 @@ class Controller(object):
Native notifications are made with WX and don't have sound, while custom notifications have sound but are not displayed in the window. Native notifications are made with WX and don't have sound, while custom notifications have sound but are not displayed in the window.
""" """
if type == "native": if type == "native":
self.window.notify(_("Socializer"), message) wx.CallAfter(self.window.notify, _("Socializer"), message)
else: else:
if sound != "": if sound != "":
self.session.soundplayer.play(sound) self.session.soundplayer.play(sound)