finish ConversationActivity on delete of empty thread

Fixes #3086
Closes #3124

// FREEBIE
This commit is contained in:
Rhodey Orbits 2015-05-07 15:39:21 -07:00 committed by Moxie Marlinspike
parent 75edb8c12c
commit b6e241b0dc

View File

@ -504,10 +504,10 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
public void onClick(DialogInterface dialog, int which) {
if (threadId > 0) {
DatabaseFactory.getThreadDatabase(ConversationActivity.this).deleteConversation(threadId);
composeText.getText().clear();
threadId = -1;
finish();
}
composeText.getText().clear();
threadId = -1;
finish();
}
});