web: don't do complicated hiding logic

This commit is contained in:
William Casarin 2022-11-18 13:51:07 -08:00
parent bd03976544
commit 8c4d87a993
2 changed files with 2 additions and 11 deletions

View file

@ -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() {