summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Examples/ScreenSharing/Host.cpp')
-rw-r--r--Swiften/Examples/ScreenSharing/Host.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Examples/ScreenSharing/Host.cpp b/Swiften/Examples/ScreenSharing/Host.cpp
index 4dd0353..44f72d4 100644
--- a/Swiften/Examples/ScreenSharing/Host.cpp
+++ b/Swiften/Examples/ScreenSharing/Host.cpp
@@ -73,7 +73,7 @@ class ScreenSharer {
}
void handleCapsChanged(JID jid) {
- if (jid.toBare() == recipient) {
+ if (jid.toBare() == recipient.toBare() || jid == recipient) {
std::cout << "Recipient found" << std::endl;
outgoingScreenSharing = client->getScreenSharingManager()->createOutgoingScreenSharing(recipient);