diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-09-06 18:21:31 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-09-06 18:21:31 +0200 |
commit | 0e5a0a07fd32d185d2d4c43df9494fafcace9208 (patch) | |
tree | e51be0fc1b2cf156327274a66589f2709c9f1e09 /src/eu/siacs/conversations/ui/adapter/MessageAdapter.java | |
parent | dc0213710640911a796880fcd68a75d2b576918d (diff) |
made otr a little bit more solid when there is no presence subscription
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java index ccf25a334..074e38fbb 100644 --- a/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -495,6 +495,11 @@ public class MessageAdapter extends ArrayAdapter<Message> { } } else if (item.getEncryption() == Message.ENCRYPTION_DECRYPTION_FAILED) { displayDecryptionFailed(viewHolder); + } else if (item.getEncryption() == Message.ENCRYPTION_OTR + && item.getStatus() == Message.STATUS_RECEPTION_FAILED + && item.getType() == Message.TYPE_TEXT) { + displayInfoMessage(viewHolder, + R.string.unable_to_decrypt_otr_message); } else { displayTextMessage(viewHolder, item); } |