Skip to content

Commit

Permalink
app: redraw entire ConversationView when source is changed
Browse files Browse the repository at this point in the history
fix to #467 #463
  • Loading branch information
redshiftzero committed Jul 18, 2019
1 parent 3310209 commit 130d340
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,9 @@ def on_source_changed(self):
# else we create it.
try:
conversation_wrapper = self.source_conversations[source]

# Redraw the conversation view such that new messages, replies, files appear.
conversation_wrapper.conversation_view.update_conversation(source.collection)
except KeyError:
conversation_wrapper = SourceConversationWrapper(source, self.controller)
self.source_conversations[source] = conversation_wrapper
Expand Down

0 comments on commit 130d340

Please sign in to comment.