add notification modal
This commit is contained in:
@@ -50,7 +50,7 @@ export function ActiveAccount({ data }: { data: any }) {
|
||||
const since = lastLogin > 0 ? lastLogin : Math.floor(Date.now() / 1000);
|
||||
const sub = ndk.subscribe(
|
||||
{
|
||||
kinds: [1, 4],
|
||||
kinds: [4],
|
||||
"#p": [data.pubkey],
|
||||
since: since,
|
||||
},
|
||||
@@ -61,10 +61,6 @@ export function ActiveAccount({ data }: { data: any }) {
|
||||
|
||||
sub.addListener("event", (event) => {
|
||||
switch (event.kind) {
|
||||
case 1:
|
||||
// send native notifiation
|
||||
sendNativeNotification("Someone mention you");
|
||||
break;
|
||||
case 4:
|
||||
// update state
|
||||
chat.mutate({
|
||||
|
||||
Reference in New Issue
Block a user