diff --git a/autotests/data/test-eventhandler-sync.json b/autotests/data/test-eventhandler-sync.json
index e25a56474..f92b35afd 100644
--- a/autotests/data/test-eventhandler-sync.json
+++ b/autotests/data/test-eventhandler-sync.json
@@ -25,7 +25,7 @@
"content": {
"user_ids": [
"@alice:matrix.org",
- "@bob:example.com"
+ "@bob:kde.org"
]
},
"room_id": "!jEsUZKDJdhlrceRyVU:example.org",
@@ -47,7 +47,7 @@
"content": {
"$1532735824654:example.org": {
"m.read": {
- "@bob:example.com": {
+ "@bob:kde.org": {
"ts": 1436451550453
}
}
@@ -67,6 +67,18 @@
},
"type": "m.receipt"
},
+ {
+ "content": {
+ "$1532735824654:example.org": {
+ "m.read": {
+ "@tim2:example.com": {
+ "ts": 1436451550454
+ }
+ }
+ }
+ },
+ "type": "m.receipt"
+ },
{
"content": {
"$1532735824654:example.org": {
@@ -136,6 +148,22 @@
"age": 1234
}
},
+ {
+ "content": {
+ "avatar_url": "mxc://example.org/SEsfnsuifSDFSSEF",
+ "displayname": "Bob",
+ "membership": "join"
+ },
+ "event_id": "$143273582443PhrSn:example.org",
+ "origin_server_ts": 1432735824653,
+ "room_id": "!jEsUZKDJdhlrceRyVU:example.org",
+ "sender": "bob:kde.org",
+ "state_key": "@bob:kde.org",
+ "type": "m.room.member",
+ "unsigned": {
+ "age": 1234
+ }
+ },
{
"content": {
"displayname": "Look\nat\nme\nI\nput\nnewlines\nin\nmy\ndisplay name",
@@ -156,7 +184,7 @@
"summary": {
"m.heroes": [
"@alice:example.com",
- "@bob:example.com"
+ "@bob:kde.org"
],
"m.invited_member_count": 0,
"m.joined_member_count": 2
diff --git a/autotests/data/test-reactionmodel-sync.json b/autotests/data/test-reactionmodel-sync.json
index 5d592b839..c3a10ef92 100644
--- a/autotests/data/test-reactionmodel-sync.json
+++ b/autotests/data/test-reactionmodel-sync.json
@@ -130,7 +130,23 @@
"origin_server_ts": 1432735824653,
"room_id": "!jEsUZKDJdhlrceRyVU:example.org",
"sender": "@example:example.org",
- "state_key": "@alice:example.org",
+ "state_key": "@alice:matrix.org",
+ "type": "m.room.member",
+ "unsigned": {
+ "age": 1234
+ }
+ },
+ {
+ "content": {
+ "avatar_url": "mxc://example.org/SEsfnsuifSDFSSEF",
+ "displayname": "Bob",
+ "membership": "join"
+ },
+ "event_id": "$143273582443PhrSn:example.org",
+ "origin_server_ts": 1432735824653,
+ "room_id": "!jEsUZKDJdhlrceRyVU:example.org",
+ "sender": "bob:example.org",
+ "state_key": "@bob:example.org",
"type": "m.room.member",
"unsigned": {
"age": 1234
diff --git a/autotests/reactionmodeltest.cpp b/autotests/reactionmodeltest.cpp
index d23bde17f..44492cf01 100644
--- a/autotests/reactionmodeltest.cpp
+++ b/autotests/reactionmodeltest.cpp
@@ -52,7 +52,7 @@ void ReactionModelTest::basicReaction()
QCOMPARE(model.data(model.index(0), ReactionModel::TextContentRole), QStringLiteral("👍"));
QCOMPARE(model.data(model.index(0), ReactionModel::ReactionRole), QStringLiteral("👍"));
QCOMPARE(model.data(model.index(0), ReactionModel::ToolTipRole),
- QStringLiteral("@alice:matrix.org reacted with 👍"));
+ QStringLiteral("Alice Margatroid reacted with 👍"));
QCOMPARE(model.data(model.index(0), ReactionModel::HasLocalMember), false);
}
@@ -63,7 +63,7 @@ void ReactionModelTest::newReaction()
QCOMPARE(model->rowCount(), 1);
QCOMPARE(model->data(model->index(0), ReactionModel::ToolTipRole),
- QStringLiteral("@alice:matrix.org reacted with 👍"));
+ QStringLiteral("Alice Margatroid reacted with 👍"));
QSignalSpy spy(model, SIGNAL(modelReset()));
@@ -72,7 +72,7 @@ void ReactionModelTest::newReaction()
QCOMPARE(spy.count(), 2); // Once for each of the 2 new reactions.
QCOMPARE(model->data(model->index(1), ReactionModel::ReactionRole), QStringLiteral("😆"));
QCOMPARE(model->data(model->index(0), ReactionModel::ToolTipRole),
- QStringLiteral("@alice:matrix.org and @bob:example.org reacted with 👍"));
+ QStringLiteral("Alice Margatroid and Bob reacted with 👍"));
delete model;
}