Skip to content

Commit 9cdb67a

Browse files
committed
fix: store private messages while in streamer mode
1 parent 34c9f9c commit 9cdb67a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/base/streamer/message.private.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ wrap(function streamPM() {
2929

3030
this.canceled = true; // Cancel the event from going through
3131

32+
const privateChats = global('privateChats');
33+
const history = privateChats[userId] || [];
34+
history.push(message);
35+
3236
const userId = user.id;
3337
if (userId === global('selfId')) return; // ignore automated reply
3438

0 commit comments

Comments
 (0)