Notifications work with dms now
This commit is contained in:
parent
d568796385
commit
dde0a06e56
8 changed files with 63 additions and 23 deletions
15
js/main.js
15
js/main.js
|
@ -138,10 +138,17 @@ function on_timer_save() {
|
|||
}
|
||||
|
||||
function on_timer_tick() {
|
||||
//return;
|
||||
setTimeout(() => {
|
||||
DAMUS.relay_que.forEach((que, relay) => {
|
||||
model_fetch_next_profile(DAMUS, relay);
|
||||
const model = DAMUS;
|
||||
setTimeout(async () => {
|
||||
if (model.dms_need_redraw && view_get_timeline_el().dataset.mode == VM_DM) {
|
||||
// if needs decryption do it
|
||||
await decrypt_dms(model);
|
||||
view_dm_update(model);
|
||||
model.dms_need_redraw = false;
|
||||
}
|
||||
update_notifications(model);
|
||||
model.relay_que.forEach((que, relay) => {
|
||||
model_fetch_next_profile(model, relay);
|
||||
});
|
||||
on_timer_tick();
|
||||
}, 1 * 1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue