commit 8c4d87a993abed1bfa62e551b625be7f53cb163c
parent bd039765448ea086e31998582d0e1ee79822cc66
Author: William Casarin <jb55@jb55.com>
Date: Fri, 18 Nov 2022 13:51:07 -0800
web: don't do complicated hiding logic
Diffstat:
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/web/index.html b/web/index.html
@@ -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>
diff --git a/web/js/damus.js b/web/js/damus.js
@@ -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() {