Skip to content

Commit

Permalink
Merge pull request #63 from YetiForceCompany/developer
Browse files Browse the repository at this point in the history
Fixed message list
  • Loading branch information
mariuszkrzaczkowski committed Jan 19, 2021
2 parents e29b3d2 + 811be5f commit 150c67c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion plugins/yetiforce/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ if (window.rcmail) {
});
}
if (rcmail.env.layout == 'widescreen') {
if (rcmail.gui_objects.messagelist) {
if (
rcmail.gui_objects.messagelist &&
typeof rcmail.env.yf_rblList !== 'undefined' &&
typeof rcmail.env.yf_senderList !== 'undefined'
) {
rcmail.addEventListener('insertrow', function (evt) {
if (typeof rcmail.env.yf_rblList[evt.uid] !== 'undefined') {
evt.row.obj.style.backgroundColor = rcmail.env.yf_rblList[evt.uid];
Expand Down
Loading

0 comments on commit 150c67c

Please sign in to comment.