]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/view_mail.js
Include email address in mail display for local users because otherwise it breaks...
[citadel.git] / webcit-ng / static / js / view_mail.js
index d65a4246d23f3cb295c838f6c3f2dfc77e2982e1..be4c1f97abf3ddcae66ea821230a6846a836e07f 100644 (file)
@@ -12,12 +12,12 @@ var RefreshMailboxInterval;                                                 // We store our refresh timer here
 
 // Render reply address for a message (FIXME we might want to figure out in-reply-to)
 function reply_addr(msg) {
-       if (msg.locl) {
-               return([msg.from]);
-       }
-       else {
+       //if (msg.locl) {
+               //return([msg.from]);
+       //}
+       //else {
                return([msg.from + " <" + msg.rfca + ">"]);
-       }
+       //}
 }
 
 
@@ -42,7 +42,7 @@ function mail_render_one(msgnum, msg, target_div, include_controls) {
                        + "<div class=\"ctdl-mmsg-content\">"                   // begin content
                        + "<div class=\"ctdl-msg-header\">"                     // begin header
                        + "<span class=\"ctdl-msg-header-info\">"               // begin header info on left side
-                       + render_msg_author(msg)
+                       + render_msg_author(msg, views.VIEW_MAILBOX)
                        + "<span class=\"ctdl-msgdate\">"
                        + string_timestamp(msg.time,0)
                        + "</span>"                                             // end msgdate
@@ -431,4 +431,4 @@ function mail_send_message() {
                }
        };
        request.send(body_text);
-}
\ No newline at end of file
+}