diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-09-29 18:55:02 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-09-29 18:55:02 (GMT) |
commit | 06a49ccc9554f2ce9e6d7b381543819590ea30ed (patch) | |
tree | 3b2c6931176633b99afcf40729e2923ecaa1e151 /Swiften/FileTransfer/IBBReceiveSession.cpp | |
parent | 4b4ab66118545e55e69e15cd340d0ddf92adcc2d (diff) | |
download | swift-contrib-06a49ccc9554f2ce9e6d7b381543819590ea30ed.zip swift-contrib-06a49ccc9554f2ce9e6d7b381543819590ea30ed.tar.bz2 |
Allow to set 'from' on Request & IBB classes.
Diffstat (limited to 'Swiften/FileTransfer/IBBReceiveSession.cpp')
-rw-r--r-- | Swiften/FileTransfer/IBBReceiveSession.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/FileTransfer/IBBReceiveSession.cpp b/Swiften/FileTransfer/IBBReceiveSession.cpp index 43c26be..1a2bb3a 100644 --- a/Swiften/FileTransfer/IBBReceiveSession.cpp +++ b/Swiften/FileTransfer/IBBReceiveSession.cpp @@ -69,10 +69,12 @@ class IBBReceiveSession::IBBResponder : public SetResponder<IBB> { IBBReceiveSession::IBBReceiveSession( const std::string& id, const JID& from, + const JID& to, size_t size, IQRouter* router) : id(id), from(from), + to(to), size(size), router(router), active(false) { @@ -99,7 +101,7 @@ void IBBReceiveSession::stop() { responder->stop(); if (active) { if (router->isAvailable()) { - IBBRequest::create(from, IBB::createIBBClose(id), router)->send(); + IBBRequest::create(to, from, IBB::createIBBClose(id), router)->send(); } finish(boost::optional<FileTransferError>()); } |