aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-12 10:02:48 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-12 10:02:48 +0200
commitd936a830e4866f070ba7726ecb845cc66644a238 (patch)
tree459db6ae6f15c7c6fabb5a25842f099b5183c534 /src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java
parent96be96f9f8a7ccae492f87ac703585bc6ac2e7b1 (diff)
add sha1 sum to file
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java')
-rw-r--r--src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java b/src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java
index a5453443..31b643c0 100644
--- a/src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java
+++ b/src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java
@@ -34,6 +34,7 @@ public class JingleConnection {
private String responder;
private List<Element> candidates = new ArrayList<Element>();
private HashMap<String, SocksConnection> connections = new HashMap<String, SocksConnection>();
+ private File file = null;
private OnIqPacketReceived responseListener = new OnIqPacketReceived() {
@@ -110,7 +111,8 @@ public class JingleConnection {
if (message.getType() == Message.TYPE_IMAGE) {
content.setAttribute("creator", "initiator");
content.setAttribute("name", "a-file-offer");
- content.offerFile(this.mXmppConnectionService.getFileBackend().getImageFile(message));
+ this.file = this.mXmppConnectionService.getFileBackend().getImageFile(message);
+ content.offerFile(file,message.getBody());
content.setCandidates(this.mJingleConnectionManager.nextRandomId(),this.candidates);
packet.setContent(content);
Log.d("xmppService",packet.toString());