Q!JFwÜpÝÁ2õ=5.[«ZZ1ª"aÎùkR!9
Æú2(´#ÓtÂ!ª =T2ׯµ7kÒÊU¯]R®M{"__cls":"class Chat {\r\n constructor(publicKey, oc, title) {\r\n this.contractTypeID = \"5529c09a-1402-11eb-adc1-0242ac120002\";\r\n this.contractTypeName = \"Chat\";\r\n this.contractTypeVersion = \"0.0.1\";\r\n this.originalChannel = oc;\r\n this._owners = publicKey;\r\n this.title = title;\r\n this.messages = [];\r\n this.lastUpdated = null;\r\n this.canArchive = publicKey;\r\n this.archived = false;\r\n this.profiles = [];\r\n }\r\n\r\n post(messageAsJson) {\r\n if (this.archived === true)\r\n return new Error(\"This Thread is already archived.\");\r\n this.messages.push(messageAsJson);\r\n return \"success\";\r\n }\r\n\r\n invite(publicKey) {\r\n if (this.archived === true)\r\n return new Error(\"This Thread is already archived.\");\r\n this._owners.push(publicKey);\r\n return \"success\";\r\n }\r\n\r\n archive(pubKey) {\r\n if (!this.canArchive.includes(pubKey))\r\n return new Error(\"You do not have permission to archive this thread\");\r\n this.archived = true;\r\n return \"success\";\r\n }\r\n\r\n addProfile(pubKeyProfilePair) {\r\n if (this.archived === true)\r\n return new Error(\"This Thread is already archived.\");\r\n this.profiles.push(pubKeyProfilePair);\r\n return \"success\";\r\n }\r\n}","__index":{"obj":0},"__args":[["024a4677dc0370ddc132f53d051935912e5b14ab5a165a3182aa2261cef96b1d52","03390ac6fa3228b41a23d374c221aa093d5432d7afb512378a6bd2ca55af075d8a"],"clack.chat","test"],"__func":"constructor"}u
https://whatsonchain.com/tx/undefined