Mercurial > libervia-backend
diff frontends/src/primitivus/primitivus @ 2016:f09562b0704d
quick_frontend, primitivus: better notifications handling
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 24 Jul 2016 17:56:14 +0200 |
parents | b536dd121da1 |
children | 88c41a195728 |
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus Sun Jul 24 17:47:09 2016 +0200 +++ b/frontends/src/primitivus/primitivus Sun Jul 24 17:56:14 2016 +0200 @@ -673,11 +673,11 @@ self.notif_bar.setProgress(percentage) def contactSelected(self, contact_list, entity): + self.clearNotifs(entity, profile=contact_list.profile) if entity.resource: # we have clicked on a private MUC conversation chat_widget = self.widgets.getOrCreateWidget(Chat, entity, on_new_widget=None, force_hash = Chat.getPrivateHash(contact_list.profile, entity), profile=contact_list.profile) else: - self.clearNotifs(entity, profile=contact_list.profile) chat_widget = self.widgets.getOrCreateWidget(Chat, entity, on_new_widget=None, profile=contact_list.profile) self.selectWidget(chat_widget) self.menu_roller.addMenu(_('Chat menu'), chat_widget.getMenu(), C.MENU_ID_WIDGET)