mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-26 01:09:13 -05:00
fixed image preview in notfications for images that arrived over jingle
This commit is contained in:
parent
a6e00837af
commit
b7f00ddac3
@ -97,15 +97,13 @@ public class JingleConnection implements Transferable {
|
|||||||
public void onFileTransmitted(DownloadableFile file) {
|
public void onFileTransmitted(DownloadableFile file) {
|
||||||
if (responder.equals(account.getJid())) {
|
if (responder.equals(account.getJid())) {
|
||||||
sendSuccess();
|
sendSuccess();
|
||||||
if (acceptedAutomatically) {
|
|
||||||
message.markUnread();
|
|
||||||
JingleConnection.this.mXmppConnectionService
|
|
||||||
.getNotificationService().push(message);
|
|
||||||
}
|
|
||||||
mXmppConnectionService.getFileBackend().updateFileParams(message);
|
mXmppConnectionService.getFileBackend().updateFileParams(message);
|
||||||
mXmppConnectionService.databaseBackend.createMessage(message);
|
mXmppConnectionService.databaseBackend.createMessage(message);
|
||||||
mXmppConnectionService.markMessage(message,
|
mXmppConnectionService.markMessage(message,Message.STATUS_RECEIVED);
|
||||||
Message.STATUS_RECEIVED);
|
if (acceptedAutomatically) {
|
||||||
|
message.markUnread();
|
||||||
|
JingleConnection.this.mXmppConnectionService.getNotificationService().push(message);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (message.getEncryption() == Message.ENCRYPTION_PGP || message.getEncryption() == Message.ENCRYPTION_DECRYPTED) {
|
if (message.getEncryption() == Message.ENCRYPTION_PGP || message.getEncryption() == Message.ENCRYPTION_DECRYPTED) {
|
||||||
file.delete();
|
file.delete();
|
||||||
|
Loading…
Reference in New Issue
Block a user