aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connection.cpp2
-rw-r--r--room.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/connection.cpp b/connection.cpp
index f498f613..efe47f86 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -551,7 +551,7 @@ void Connection::setHomeserver(const QUrl& url)
emit homeserverChanged(homeserver());
}
-static constexpr int CACHE_VERSION_MAJOR = 1;
+static constexpr int CACHE_VERSION_MAJOR = 2;
static constexpr int CACHE_VERSION_MINOR = 0;
void Connection::saveState(const QUrl &toFile) const
diff --git a/room.cpp b/room.cpp
index e3e0fb47..71b7b228 100644
--- a/room.cpp
+++ b/room.cpp
@@ -1467,7 +1467,9 @@ QJsonObject Room::Private::toJson() const
QJsonObject roomStateObj;
roomStateObj.insert("events", stateEvents);
- result.insert("state", roomStateObj);
+ result.insert(
+ joinState == JoinState::Invite ? "invite_state" : "state",
+ roomStateObj);
}
if (!q->readMarkerEventId().isEmpty())