Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
[add] - ピン留め時にチャンネル情報も渡すように
Browse files Browse the repository at this point in the history
  • Loading branch information
NfoAlex committed Dec 3, 2023
1 parent 425186e commit 1759413
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,14 @@ io.on("connection", (socket) => {
switch( dat.action ) {
case "pin":
result = msg.msgPin(dat);
//チャンネル情報の更新もしてるからデータを送信
//現在のチャンネルの情報を取得、送信
let info = db.getInfoChannel({
targetid: dat.channelid,
reqSender: dat.reqSender
});
console.log("index :: actMessage : channeldata->", info);
io.to("loggedin").emit("infoChannel", info);
break;

case "delete":
Expand Down

0 comments on commit 1759413

Please sign in to comment.