mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-06 11:59:58 +02:00
fix: check draft.isOk() instead of comparing to null
dcContext.getDraft() never returns null.
This commit is contained in:
parent
00498b02b3
commit
9a4851961e
1 changed files with 1 additions and 1 deletions
|
@ -717,7 +717,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||||
DcMsg draft = dcContext.getDraft(chatId);
|
DcMsg draft = dcContext.getDraft(chatId);
|
||||||
final String sharedText = RelayUtil.getSharedText(this);
|
final String sharedText = RelayUtil.getSharedText(this);
|
||||||
|
|
||||||
if (draft == null) {
|
if (!draft.isOk()) {
|
||||||
if (TextUtils.isEmpty(sharedText)) {
|
if (TextUtils.isEmpty(sharedText)) {
|
||||||
future.set(false);
|
future.set(false);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue