web: don't do complicated hiding logic
This commit is contained in:
parent
bd03976544
commit
8c4d87a993
2 changed files with 2 additions and 11 deletions
|
@ -12,7 +12,7 @@
|
|||
<script defer src="js/noble-secp256k1.js?v=1"></script>
|
||||
<script defer src="js/bech32.js?v=1"></script>
|
||||
<script defer src="js/nostr.js?v=6"></script>
|
||||
<script defer src="js/damus.js?v=91"></script>
|
||||
<script defer src="js/damus.js?v=92"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
|
|
@ -1041,16 +1041,7 @@ function delete_post_confirm(evid) {
|
|||
}
|
||||
|
||||
function shouldnt_render_event(our_pk, view, ev, opts) {
|
||||
if (view.name === 'notifications') {
|
||||
// never show our stuff on the notifications tab
|
||||
if (our_pk === ev.pubkey)
|
||||
return true
|
||||
}
|
||||
|
||||
return !opts.is_boost_event &&
|
||||
!opts.is_composing &&
|
||||
!view.expanded.has(ev.id) &&
|
||||
view.rendered.has(ev.id)
|
||||
return opts.is_boost_event || opts.is_composing
|
||||
}
|
||||
|
||||
function press_logout() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue