self._update_widgets_for_session()# clean this up -Dan (too many functions called in 3 different places: on selection changed, here and on notifications handlers)
self.tab_widget.setCurrentWidget(self.selected_session.chat_widget)# why do we switch the tab here, but do everything else in the selected_session property setter? -Dan
self.palettes.standard.setColor(QPalette.Window,self.palettes.standard.color(QPalette.Base))# We modify the palettes because only the Oxygen theme honors the BackgroundRole if set
self.palettes.alternate.setColor(QPalette.Window,self.palettes.standard.color(QPalette.AlternateBase))# AlternateBase set to #f0f4ff or #e0e9ff by designer
participant=next(itemforiteminself.participantsifitem.participantisnotification.data.participant)# review this (check if it's worth keeping a mapping) -Dan