Skip to content

Commit

Permalink
testing for #361: is the source.collection stale?
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed May 30, 2019
1 parent b2e1286 commit 3927685
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,10 @@ def clear_conversation(self):
child.widget().deleteLater()

def update_conversation(self, collection: list) -> None:
from securedrop_client import db
self.source = db.Session().query(db.Source).filter_by(uuid=self.source.uuid).one()
collection = self.source.collection

# clear all old items
self.clear_conversation()
# add new items
Expand Down

0 comments on commit 3927685

Please sign in to comment.