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 } });
|