aboutsummaryrefslogtreecommitdiff
path: root/examples/qmc-example.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-05 21:07:20 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-05 21:07:20 +0900
commitbc10ecd90b0bda973658db419bca88923b436ff3 (patch)
tree95d32fe83cd532815c6f6316e7c5ab3c9e73d4b7 /examples/qmc-example.cpp
parent1c5b7f8a1c6d82a612f4a2a74eeb644a40370ca5 (diff)
parent63efbe26f37819048bb236d4839cc5f25c102785 (diff)
downloadlibquotient-bc10ecd90b0bda973658db419bca88923b436ff3.tar.gz
libquotient-bc10ecd90b0bda973658db419bca88923b436ff3.zip
Merge branch 'kitsune-fully-read-marker'
Diffstat (limited to 'examples/qmc-example.cpp')
-rw-r--r--examples/qmc-example.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/qmc-example.cpp b/examples/qmc-example.cpp
index 13a1b7c4..3fa74d42 100644
--- a/examples/qmc-example.cpp
+++ b/examples/qmc-example.cpp
@@ -130,6 +130,7 @@ void QMCTest::addAndRemoveTag()
<< " " << targetRoom->tagNames().join(", ").toStdString() << endl;
if (targetRoom->tags().contains(TestTag))
{
+ cout << "Test tag set, removing it now" << endl;
targetRoom->removeTag(TestTag);
QMC_CHECK("Tagging test", !targetRoom->tags().contains(TestTag));
--semaphor;
@@ -137,15 +138,18 @@ void QMCTest::addAndRemoveTag()
}
});
// The reverse order because tagsChanged is emitted synchronously.
+ cout << "Adding a tag" << endl;
targetRoom->addTag(TestTag);
}
void QMCTest::sendAndRedact()
{
++semaphor;
+ cout << "Sending a message to redact" << endl;
auto* job = targetRoom->connection()->callApi<SendEventJob>(targetRoom->id(),
- RoomMessageEvent("Message to redact"));
+ RoomMessageEvent(origin % ": Message to redact"));
QObject::connect(job, &BaseJob::success, targetRoom, [job,this] {
+ cout << "Message to redact has been succesfully sent, redacting" << endl;
targetRoom->redactEvent(job->eventId(), "qmc-example");
});
QObject::connect(targetRoom, &Room::replacedEvent, targetRoom,