mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
removed unnecessary variable in message class
This commit is contained in:
parent
71886ed2ab
commit
60d0881852
@ -161,7 +161,6 @@ public class PgpEngine {
|
||||
}
|
||||
message.setEncryptedBody(encryptedMessageBody
|
||||
.toString());
|
||||
message.ready = true;
|
||||
callback.success(message);
|
||||
break;
|
||||
case OpenPgpApi.RESULT_CODE_USER_INTERACTION_REQUIRED:
|
||||
@ -191,7 +190,6 @@ public class PgpEngine {
|
||||
switch (result.getIntExtra(OpenPgpApi.RESULT_CODE,
|
||||
OpenPgpApi.RESULT_CODE_ERROR)) {
|
||||
case OpenPgpApi.RESULT_CODE_SUCCESS:
|
||||
message.ready = true;
|
||||
callback.success(message);
|
||||
break;
|
||||
case OpenPgpApi.RESULT_CODE_USER_INTERACTION_REQUIRED:
|
||||
|
@ -56,8 +56,6 @@ public class Message extends AbstractEntity {
|
||||
|
||||
protected transient JingleConnection jingleConnection = null;
|
||||
|
||||
public boolean ready = true;
|
||||
|
||||
private Message() {
|
||||
|
||||
}
|
||||
|
@ -376,7 +376,6 @@ public class XmppConnectionService extends Service {
|
||||
if (conversation.getNextEncryption() == Message.ENCRYPTION_PGP) {
|
||||
getPgpEngine().encrypt(message, callback);
|
||||
} else {
|
||||
message.ready = true;
|
||||
callback.success(message);
|
||||
}
|
||||
} catch (FileBackend.ImageCopyException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user