Skip to content
Snippets Groups Projects
Commit e2c3b59d authored by Eric Oulashin's avatar Eric Oulashin
Browse files

DDMsgReader: When listing messages via lightbar, check if the subject is...

DDMsgReader: When listing messages via lightbar, check if the subject is UTF-8, which now helps the lightbar menu display the line properly, particularly for UTF-8 terminals
parent 61049cd7
No related branches found
No related tags found
1 merge request!442DDMsgReader: When listing messages via lightbar, check if the subject is UTF-8, which now helps the lightbar menu display the line properly, particularly for UTF-8 terminals
Pipeline #6490 passed
......@@ -4414,7 +4414,7 @@ function DigDistMsgReader_CreateLightbarMsgListMenu()
// When setting the item text, call PrintMessageInfo with true as
// the last parameter to return the string instead
menuItemObj.text = strip_ctrl(this.msgReader.PrintMessageInfo(msgHdr, false, itemIdx+1, true));
menuItemObj.textIsUTF8 = msgHdr.hasOwnProperty("is_utf8") && msgHdr.is_utf8;
menuItemObj.textIsUTF8 = (msgHdr.hasOwnProperty("is_utf8") && msgHdr.is_utf8) || str_is_utf8(msgHdr.subject);
menuItemObj.retval = msgHdr.number;
var msgIsToUser = userHandleAliasNameMatch(msgHdr.to);
var msgIsFromUser = userHandleAliasNameMatch(msgHdr.from);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment