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
|
@ -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