@vlprojects-chat/chat 0.17.0-LD-8093.7 → 0.17.0-LD-8093.9

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.mjs +5 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -30959,12 +30959,14 @@ let $t = class extends br({
30959
30959
  }
30960
30960
  addMessages(e) {
30961
30961
  console.log("addMessages", e);
30962
- let t = 0, n = 0;
30962
+ let t = 0;
30963
+ console.log("this.lastReadTimestamp=", this.lastReadTimestamp);
30964
+ let n = 0;
30963
30965
  const r = lp(this);
30964
30966
  return e.forEach((o) => {
30965
30967
  var i;
30966
30968
  if (!(o.type === kc.System && !o.meta)) {
30967
- this.messages.has(o.id) || (t += 1, (this.id !== ((i = r.currentChannel) == null ? void 0 : i.id) || !r.ui.route.includes(dt.Channels)) && (n = new Date(o.createdAt).getTime() > this.lastReadTimestamp ? n + 1 : n));
30969
+ this.messages.has(o.id) || (t += 1, console.log(`craetedAt=${o.createdAt} getTime=${new Date(o.createdAt).getTime()}`), (this.id !== ((i = r.currentChannel) == null ? void 0 : i.id) || !r.ui.route.includes(dt.Channels)) && (n = new Date(o.createdAt).getTime() > this.lastReadTimestamp ? n + 1 : n));
30968
30970
  const s = new mp({
30969
30971
  id: o.id,
30970
30972
  randomId: o.randomId || null,
@@ -39129,7 +39131,7 @@ const yP = {
39129
39131
  }, gce = () => {
39130
39132
  const e = pe.useContext(_2);
39131
39133
  return e ? e.chatSnackbarContainer : null;
39132
- }, vce = "@vlprojects-chat/chat", yce = "vlprojects", bce = "0.17.0-LD-8093.6", wce = "vlprojects chat", Sce = "ISC", Ece = "dist/index.d.ts", xce = "./dist/index.mjs", Cce = "./dist/index.mjs", Tce = [
39134
+ }, vce = "@vlprojects-chat/chat", yce = "vlprojects", bce = "0.17.0-LD-8093.8", wce = "vlprojects chat", Sce = "ISC", Ece = "dist/index.d.ts", xce = "./dist/index.mjs", Cce = "./dist/index.mjs", Tce = [
39133
39135
  "dist"
39134
39136
  ], Oce = {
39135
39137
  type: "git",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vlprojects-chat/chat",
3
3
  "author": "vlprojects",
4
- "version": "0.17.0-LD-8093.7",
4
+ "version": "0.17.0-LD-8093.9",
5
5
  "description": "vlprojects chat",
6
6
  "license": "ISC",
7
7
  "types": "dist/index.d.ts",