Fix space switching on mobile
We forgot to connect to onTapped on the touchscreen-specific TapHandler. I also needed to carve out a specific case for DMs so it doesn't try to resolve the non-existent "DM" resource.
This commit is contained in:
@@ -48,6 +48,7 @@ Delegates.RoundedItemDelegate {
|
|||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedDevices: PointerDevice.TouchScreen
|
acceptedDevices: PointerDevice.TouchScreen
|
||||||
|
onTapped: root.selected()
|
||||||
onLongPressed: root.contextMenuRequested()
|
onLongPressed: root.contextMenuRequested()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -540,7 +540,9 @@ void RoomManager::setCurrentSpace(const QString &spaceId, bool setRoom)
|
|||||||
|
|
||||||
const auto &lastRoom = m_lastRoomConfig.readEntry(configSpaceId, QString());
|
const auto &lastRoom = m_lastRoomConfig.readEntry(configSpaceId, QString());
|
||||||
if (lastRoom.isEmpty()) {
|
if (lastRoom.isEmpty()) {
|
||||||
resolveResource(spaceId, "no_join"_L1);
|
if (spaceId != u"DM"_s) {
|
||||||
|
resolveResource(spaceId, "no_join"_L1);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
resolveResource(lastRoom, "no_join"_L1);
|
resolveResource(lastRoom, "no_join"_L1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user