Skip to content

Commit e083508

Browse files
author
thyttan
committed
messagegui: Always add title field in some way.
1 parent 192c5cf commit e083508

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

apps/messagegui/app.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,10 @@ function showMessagesScroller(msg, persist, alreadyProcessed) {
297297
}
298298

299299
var lines = [];
300-
if (msgLocal.title) {
301-
lines = g.wrapString(msgLocal.title, g.getWidth()-10);
302-
for (let i=0; i<lines.length; i++) {
303-
titleLines.push(i + (messagesWrapped[0]?messagesWrapped[0].length:0) +
304-
(messagesWrapped[1]?messagesWrapped[1].length:0));
305-
}
300+
lines = g.wrapString(msgLocal.title||msgLocal.sender||msgLocal.subject||msgLocal.src||"No Title", g.getWidth()-10);
301+
for (let i=0; i<lines.length; i++) {
302+
titleLines.push(i + (messagesWrapped[0]?messagesWrapped[0].length:0) +
303+
(messagesWrapped[1]?messagesWrapped[1].length:0));
306304
}
307305
var titleCnt = lines.length;
308306
if (titleCnt) {lines.push("");} // add blank line after title

0 commit comments

Comments
 (0)