diff --git a/js/main.js b/js/main.js index 492d364..c7e629f 100644 --- a/js/main.js +++ b/js/main.js @@ -19,9 +19,6 @@ const SID_PROFILES = "profiles"; const SID_THREAD = "thread"; const SID_FRIENDS = "friends"; -// TODO notifications view needs to show replys to threads without mentions not -// sure how to achieve this just yet - // This is our main entry. // https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event addEventListener('DOMContentLoaded', (ev) => { diff --git a/js/ui/render.js b/js/ui/render.js index 4ddf115..7e3380a 100644 --- a/js/ui/render.js +++ b/js/ui/render.js @@ -2,62 +2,6 @@ // is done by simple string manipulations & templates. If you need to write // loops simply write it in code and return strings. -/*function render_timeline_event(damus, view, ev) -{ - const root_id = get_thread_root_id(damus, ev.id) - const max_depth = root_id ? get_thread_max_depth(damus, view, root_id) : get_default_max_depth(damus, view) - - if (ev.refs && ev.refs.root && view.expanded.has(ev.refs.root)) - max_depth = null - - return render_event(damus, view, ev, {max_depth}) -} -*/ - -function render_reply_line_top(has_top_line) { - const classes = has_top_line ? "" : "invisible" - return `
` -} - -function render_reply_line_bot() { - return `` -} - -function render_thread_collapsed(model, ev, opts) -{ - if (opts.is_composing) - return "" - return `