clay-server 2.15.0-beta.3 → 2.15.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/public/app.js +7 -0
- package/package.json +1 -1
package/lib/public/app.js
CHANGED
|
@@ -551,6 +551,13 @@ import { initCommandPalette, handlePaletteSessionSwitch, setPaletteVersion } fro
|
|
|
551
551
|
// --- DM Mode Functions ---
|
|
552
552
|
function openDm(targetUserId) {
|
|
553
553
|
if (!ws || ws.readyState !== 1) return;
|
|
554
|
+
// Check mate skill updates before opening mate DM
|
|
555
|
+
if (typeof targetUserId === "string" && targetUserId.indexOf("mate_") === 0) {
|
|
556
|
+
requireClayMateInterview(function () {
|
|
557
|
+
ws.send(JSON.stringify({ type: "dm_open", targetUserId: targetUserId }));
|
|
558
|
+
});
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
554
561
|
ws.send(JSON.stringify({ type: "dm_open", targetUserId: targetUserId }));
|
|
555
562
|
}
|
|
556
563
|
|