@connectedxm/client 1.0.15 → 1.0.16
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/dist/index.js +11 -6
- package/dist/index.mjs +11 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5450,13 +5450,18 @@ var GetSelfChatChannelMessages = async ({
|
|
|
5450
5450
|
}
|
|
5451
5451
|
);
|
|
5452
5452
|
if (queryClient && data.status === "ok") {
|
|
5453
|
-
SET_SELF_CHAT_CHANNEL_QUERY_DATA(queryClient, [channelId], (old) =>
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5453
|
+
SET_SELF_CHAT_CHANNEL_QUERY_DATA(queryClient, [channelId], (old) => {
|
|
5454
|
+
if (old && old.data) {
|
|
5455
|
+
return {
|
|
5456
|
+
...old,
|
|
5457
|
+
data: {
|
|
5458
|
+
...old.data,
|
|
5459
|
+
read: true
|
|
5460
|
+
}
|
|
5461
|
+
};
|
|
5458
5462
|
}
|
|
5459
|
-
|
|
5463
|
+
return old;
|
|
5464
|
+
});
|
|
5460
5465
|
}
|
|
5461
5466
|
return data;
|
|
5462
5467
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -4476,13 +4476,18 @@ var GetSelfChatChannelMessages = async ({
|
|
|
4476
4476
|
}
|
|
4477
4477
|
);
|
|
4478
4478
|
if (queryClient && data.status === "ok") {
|
|
4479
|
-
SET_SELF_CHAT_CHANNEL_QUERY_DATA(queryClient, [channelId], (old) =>
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4479
|
+
SET_SELF_CHAT_CHANNEL_QUERY_DATA(queryClient, [channelId], (old) => {
|
|
4480
|
+
if (old && old.data) {
|
|
4481
|
+
return {
|
|
4482
|
+
...old,
|
|
4483
|
+
data: {
|
|
4484
|
+
...old.data,
|
|
4485
|
+
read: true
|
|
4486
|
+
}
|
|
4487
|
+
};
|
|
4484
4488
|
}
|
|
4485
|
-
|
|
4489
|
+
return old;
|
|
4490
|
+
});
|
|
4486
4491
|
}
|
|
4487
4492
|
return data;
|
|
4488
4493
|
};
|