mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
clear the current text box when deleting a draft-only thread.
otherwise the draft will be immediately re-saved (preventing thread deletion). // FREEBIE Closes #2474 Fixes #2473
This commit is contained in:
parent
224b06f05a
commit
7ab739b22b
@ -535,6 +535,7 @@ 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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user