fishpi 0.0.13 → 0.0.14
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.
- package/lib/src/chatroom.js +4 -2
- package/package.json +1 -1
package/lib/src/chatroom.js
CHANGED
|
@@ -141,7 +141,8 @@ var ChatRoom = /** @class */ (function () {
|
|
|
141
141
|
redpacket_1 = JSON.parse(d.content);
|
|
142
142
|
if (redpacket_1.msgType !== 'redPacket')
|
|
143
143
|
return rsp_1;
|
|
144
|
-
|
|
144
|
+
if (redpacket_1.recivers)
|
|
145
|
+
redpacket_1.recivers = JSON.parse(redpacket_1.recivers);
|
|
145
146
|
data[i].content = redpacket_1;
|
|
146
147
|
}
|
|
147
148
|
catch (e) { }
|
|
@@ -182,7 +183,8 @@ var ChatRoom = /** @class */ (function () {
|
|
|
182
183
|
redpacket_2 = JSON.parse(d.content);
|
|
183
184
|
if (redpacket_2.msgType !== 'redPacket')
|
|
184
185
|
return rsp_2;
|
|
185
|
-
|
|
186
|
+
if (redpacket_2.recivers)
|
|
187
|
+
redpacket_2.recivers = JSON.parse(redpacket_2.recivers);
|
|
186
188
|
data[i].content = redpacket_2;
|
|
187
189
|
}
|
|
188
190
|
catch (e) { }
|