node-karin 0.7.1 → 0.7.2

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.
@@ -208,12 +208,12 @@ export class AdapterOneBot11 {
208
208
  const selfUin = this.account.uin;
209
209
  const selfNick = this.account.name;
210
210
  for (const i of elements) {
211
- const content = this.KarinConvertAdapter(i.content);
212
211
  const type = 'node';
213
212
  if (i.id) {
214
213
  messages.push({ type, data: { id: i.id } });
215
214
  }
216
215
  else {
216
+ const content = this.KarinConvertAdapter(i.content);
217
217
  const user_id = String(i.user_id || selfUin);
218
218
  const nickname = String(i.nickname || selfNick);
219
219
  messages.push({ type, data: { user_id, nickname, content } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "private": false,
5
5
  "description": "基于 Kritor 进行开发的nodejs机器人框架",
6
6
  "homepage": "https://github.com/KarinJS/Karin",