Compare commits

..

3 Commits

Author SHA1 Message Date
Joshua Goins
504646baf2 Decrypt when downloading single events from the server
This fixes issues like not being able to view pinned messages in
encrypted rooms.

(cherry picked from commit 89e42dbc53)

# Conflicts:
#	src/libneochat/neochatroom.cpp
2026-01-13 17:46:38 -05:00
Lorenz Wildberg
280d194311 fix bug: room settings don't open
(cherry picked from commit 2ec1fa92fa)
2026-01-13 17:39:42 -05:00
Joshua Goins
bcac768b34 Make clicking room list section headers more reliable
ListSectionHeader itself is an ItemDelegate, which eats up input events.
We can work around this by also listening to onClicked there too.

(cherry picked from commit 3a416990ca)
2026-01-13 17:39:42 -05:00
3 changed files with 10 additions and 1 deletions

View File

@@ -1602,6 +1602,12 @@ void NeoChatRoom::downloadEventFromServer(const QString &eventId)
}
event_ptr_tt<RoomEvent> event = fromJson<event_ptr_tt<RoomEvent>>(job->jsonData());
if (auto encEv = eventCast<EncryptedEvent>(event.get())) {
auto decryptedEvent = decryptMessage(*encEv);
if (decryptedEvent) {
event = std::move(decryptedEvent);
}
}
m_extraEvents.push_back(std::move(event));
Q_EMIT extraEventLoaded(eventId);
});

View File

@@ -9,6 +9,7 @@ import org.kde.kitemmodels
import org.kde.neochat.libneochat
import org.kde.neochat.timeline as Timeline
import org.kde.neochat.settings as Settings
/**
* @brief Page for holding a room drawer component.
@@ -50,7 +51,7 @@ Kirigami.Page {
text: i18nc("@action:button", "Room settings")
icon.name: 'settings-configure-symbolic'
onTriggered: {
RoomSettingsView.openRoomSettings(root.room, RoomSettingsView.Room);
Settings.RoomSettingsView.openRoomSettings(root.room, Settings.RoomSettingsView.Room);
}
}
]

View File

@@ -46,6 +46,8 @@ QQC2.ItemDelegate {
topPadding: 0
bottomPadding: 0
text: root.collapsed ? "" : root.displayName
onClicked: root.treeView.toggleExpanded(row)
}
QQC2.ToolButton {
id: collapseButton