[network/neochat] src/libneochat: Ensure we pass server names while accepting invitations

Joshua Goins <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit de4f06fb831d267f14356f61c5c9692ee16de16d by Joshua Goins.
Committed on 26/07/2026 at 15:51.
Pushed by redstrate into branch 'master'.

Ensure we pass server names while accepting invitations

Not sure if it helps any though, but we do a similar thing in
RoomManager::joinRoom.

M  +5    -1    src/libneochat/neochatroom.cpp

https://invent.kde.org/network/neochat/-/commit/de4f06fb831d267f14356f61c5c9692ee16de16d

diff --git a/src/libneochat/neochatroom.cpp b/src/libneochat/neochatroom.cpp
index 3061cceea..532735f8c 100644
--- a/src/libneochat/neochatroom.cpp
+++ b/src/libneochat/neochatroom.cpp
@@ -347,7 +347,11 @@ QCoro::Task<void> NeoChatRoom::doUploadFile(QUrl url, QString body, std::optiona
 
 void NeoChatRoom::acceptInvitation()
 {
-    connection()->joinRoom(id());
+    QStringList serverNames;
+    serverNames.push_back(connection()->domain());
+    serverNames.push_back(serverPart(invitingUserId()));
+
+    connection()->joinRoom(id(), serverNames);
 }
 
 void NeoChatRoom::forget()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.