Skip to content

Commit

Permalink
removes Moss notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Sep 4, 2024
1 parent fbd8572 commit f826caa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.0.6",
"version": "0.0.7",
"dnaVersion": "0.0.2",
"scripts": {
"start": "vite --clearScreen false --port $UI_PORT",
Expand Down
24 changes: 12 additions & 12 deletions ui/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,18 @@ export class ZipTestStore {

const firstAdd = stream.addMessage(message)
if (message.payload.type == "Msg") {
if (firstAdd && isWeContext()) {
await this.weaveClient.notifyFrame([
{
title: `message from ${encodeHashToBase64(message.from)}`,
body: message.payload.text,
notification_type: "message",
icon_src: undefined,
urgency: "high",
timestamp: message.payload.created
}
])
}
// if (firstAdd && isWeContext()) {
// await this.weaveClient.notifyFrame([
// {
// title: `message from ${encodeHashToBase64(message.from)}`,
// body: message.payload.text,
// notification_type: "message",
// icon_src: undefined,
// urgency: "high",
// timestamp: message.payload.created
// }
// ])
// }
if (encodeHashToBase64(message.from) != this.myAgentPubKeyB64) {
await this.client.sendMessage(streamId, {type:"Ack", created:message.payload.created},[message.from])
}
Expand Down

0 comments on commit f826caa

Please sign in to comment.