mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
do not just simply resend images
This commit is contained in:
parent
3fd371cd53
commit
df7f7c5c4e
@ -725,6 +725,7 @@ public class XmppConnectionService extends Service {
|
|||||||
|
|
||||||
private void resendMessage(Message message) {
|
private void resendMessage(Message message) {
|
||||||
Account account = message.getConversation().getAccount();
|
Account account = message.getConversation().getAccount();
|
||||||
|
if (message.getType() == Message.TYPE_TEXT) {
|
||||||
MessagePacket packet = null;
|
MessagePacket packet = null;
|
||||||
if (message.getEncryption() == Message.ENCRYPTION_NONE) {
|
if (message.getEncryption() == Message.ENCRYPTION_NONE) {
|
||||||
packet = prepareMessagePacket(account, message, null);
|
packet = prepareMessagePacket(account, message, null);
|
||||||
@ -747,6 +748,9 @@ public class XmppConnectionService extends Service {
|
|||||||
account.getXmppConnection().sendMessagePacket(packet);
|
account.getXmppConnection().sendMessagePacket(packet);
|
||||||
markMessage(message, Message.STATUS_SEND);
|
markMessage(message, Message.STATUS_SEND);
|
||||||
}
|
}
|
||||||
|
} else if (message.getType() == Message.TYPE_IMAGE) {
|
||||||
|
//TODO: send images
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public MessagePacket prepareMessagePacket(Account account, Message message,
|
public MessagePacket prepareMessagePacket(Account account, Message message,
|
||||||
|
Loading…
Reference in New Issue
Block a user