summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-08-06 06:25:09 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-08-06 06:25:09 (GMT)
commit75698ca17add2101fcbeac0e694044307474f924 (patch)
treecbd14b8ed7670d61cc8cbeecb4d84fde9dea2071 /Swiften/Whiteboard/OutgoingWhiteboardSession.cpp
parent7709b172620653a15f7358186914d1a2b8a5e9be (diff)
downloadswift-contrib-75698ca17add2101fcbeac0e694044307474f924.zip
swift-contrib-75698ca17add2101fcbeac0e694044307474f924.tar.bz2
Blocked onOperationReceived signal on no-ops
Diffstat (limited to 'Swiften/Whiteboard/OutgoingWhiteboardSession.cpp')
-rw-r--r--Swiften/Whiteboard/OutgoingWhiteboardSession.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Swiften/Whiteboard/OutgoingWhiteboardSession.cpp b/Swiften/Whiteboard/OutgoingWhiteboardSession.cpp
index 63e4476..7debbe0 100644
--- a/Swiften/Whiteboard/OutgoingWhiteboardSession.cpp
+++ b/Swiften/Whiteboard/OutgoingWhiteboardSession.cpp
@@ -40,8 +40,9 @@ namespace Swift {
void OutgoingWhiteboardSession::handleIncomingOperation(WhiteboardOperation::ref operation) {
WhiteboardOperation::ref op = server.handleClientOperationReceived(operation);
-
- onOperationReceived(op);
+ if (op->getPos() != -1) {
+ onOperationReceived(op);
+ }
lastOpID = op->getID();
WhiteboardPayload::ref payload = boost::make_shared<WhiteboardPayload>();