Updates
Improved recognization of replying to thread and being able to open it. Rewrote profile storing on the model. Additionally fixed issues where the profile was not getting loaded for referenced pubkeys on an event.
This commit is contained in:
parent
1850ed6aa1
commit
f00f327a3d
11 changed files with 145 additions and 122 deletions
|
@ -103,16 +103,14 @@ function get_since_time(created_at) {
|
|||
* parent element to search on.
|
||||
*/
|
||||
function find_node(selector, parentEl) {
|
||||
const el = parentEl ? parentEl : document;
|
||||
return el.querySelector(selector)
|
||||
return (parentEl || document).querySelector(selector)
|
||||
}
|
||||
|
||||
/* find_nodes is a short name for document.querySelectorAll, it also takes in a
|
||||
* parent element to search on.
|
||||
*/
|
||||
function find_nodes(selector, parentEl) {
|
||||
const el = parentEl ? parentEl : document;
|
||||
return el.querySelectorAll(selector)
|
||||
return (parentEl || document).querySelectorAll(selector);
|
||||
}
|
||||
|
||||
/* uuidv4 returns a new uuid v4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue