aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/room.cpp3
-rw-r--r--lib/user.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index c11f7990..c2c4ba78 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -750,8 +750,7 @@ Room::Changes Room::Private::markMessagesAsRead(rev_iter_t upToMarker)
if ((*upToMarker)->senderId() != q->localUser()->id()) {
connection->callApi<PostReceiptJob>(BackgroundRequest,
id, QStringLiteral("m.read"),
- QUrl::toPercentEncoding(
- (*upToMarker)->id()));
+ (*upToMarker)->id());
break;
}
}
diff --git a/lib/user.cpp b/lib/user.cpp
index 88549e5d..7da71dba 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -66,7 +66,7 @@ User::~User() = default;
void User::load()
{
auto* profileJob =
- connection()->callApi<GetUserProfileJob>(QUrl::toPercentEncoding(id()));
+ connection()->callApi<GetUserProfileJob>(id());
connect(profileJob, &BaseJob::result, this, [this, profileJob] {
d->defaultName = profileJob->displayname();
d->defaultAvatar = Avatar(QUrl(profileJob->avatarUrl()));