upload.js: when removing an attachment, delete the div
[citadel.git] / webcit-ng / static / js / view_mail.js
index 0efdf37f6ad60b2b77aae3810fbfb2249f0948ae..d058f470ecf35727d3820f4e455275e6c4c720d2 100644 (file)
@@ -372,9 +372,9 @@ function refresh_mail_display() {
        fetch_stat = async() => {
                response = await fetch(url);
                stat = await(response.json());
-               if (stat.room_mtime > room_mtime) {                     // FIXME commented out to force refreshes
+               if (stat.room_mtime > room_mtime) {                     // if modified...
                        room_mtime = stat.room_mtime;
-                       render_mailbox_display(newmail_notify.YES);
+                       render_mailbox_display(newmail_notify.YES);     // ...force a refresh
                }
        }
        fetch_stat();