Comparing version 2.0.0-beta.4 to 2.0.0-beta.5
@@ -62,3 +62,3 @@ export var Reactions; | ||
this.data = data; | ||
this.threadId = data.uidFrom == "0" ? data.idTo : data.uidFrom; | ||
this.threadId = isGroup || data.uidFrom == "0" ? data.idTo : data.uidFrom; | ||
this.isSelf = data.uidFrom == "0"; | ||
@@ -65,0 +65,0 @@ this.isGroup = isGroup; |
export class Undo { | ||
constructor(uid, data, isGroup) { | ||
this.data = data; | ||
this.threadId = data.uidFrom == "0" ? data.idTo : data.uidFrom; | ||
this.threadId = isGroup || data.uidFrom == "0" ? data.idTo : data.uidFrom; | ||
this.isSelf = data.uidFrom == "0"; | ||
@@ -6,0 +6,0 @@ this.isGroup = isGroup; |
import { compare } from "semver"; | ||
import { isBun, logger } from "./utils.js"; | ||
const VERSION = "2.0.0-beta.3"; | ||
const VERSION = "2.0.0-beta.5"; | ||
const NPM_REGISTRY = "https://registry.npmjs.org/zca-js"; | ||
@@ -5,0 +5,0 @@ export async function checkUpdate(ctx) { |
{ | ||
"name": "zca-js", | ||
"version": "2.0.0-beta.4", | ||
"version": "2.0.0-beta.5", | ||
"description": "Unofficial Zalo API for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
420067