From d189daf93ac17a151f093d416f8d61bdb9efe8c5 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Wed, 27 Dec 2023 00:00:30 +0100 Subject: Updated 2 files and added pages/schedule.inc (automated) --- includes/external/signal/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/external') diff --git a/includes/external/signal/index.js b/includes/external/signal/index.js index 8bb6c05..7531fb5 100644 --- a/includes/external/signal/index.js +++ b/includes/external/signal/index.js @@ -60,6 +60,7 @@ const child_process = require("child_process"); fs.writeFileSync("/tmp/chm-" + user + "-pfp-final", pfp); child_process.execFileSync("signal-cli", [ "-a", number, "updateProfile", "--given-name", name, "--family-name", "", "--avatar", "/tmp/chm-" + user + "-pfp-final" ]); + child_process.execFileSync("signal-cli", [ "-a", number, "updateAccount", "--device-name", "Ponycule to Signal integration (v" + new Date().toISOString().split("T")[0].replaceAll("-", ".") + ")" ]); child_process.execFileSync("signal-cli", [ "-a", number, "sendSyncRequest" ]); fs.unlinkSync("/tmp/chm-" + user + "-pfp-final"); })(); \ No newline at end of file -- cgit