wx2tg-puppet 1.1.4 → 1.1.5

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -255,7 +255,7 @@ class WxBot extends events_1.EventEmitter {
255
255
  MsgSource: msg.MsgSource,
256
256
  NewMsgId: msg.NewMsgId,
257
257
  MsgSeq: msg.MsgSeq,
258
- RoomId: msg.FromUserName.string.endsWith('@chatroom') ? msg.FromUserName.string : '',
258
+ RoomId: (msg.FromUserName.string.endsWith('@chatroom') ? msg.FromUserName.string : '') || (msg.ToUserName.string.endsWith('@chatroom') ? msg.ToUserName.string : ''),
259
259
  IsSelf: msg.FromUserName.string === userName,
260
260
  xml: msg.Content.string
261
261
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wx2tg-puppet",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [