@@ -90,7 +90,6 @@ var onMessagesModified = function(type,msg) {
9090 }
9191 if ( msg && msg . id == "nav" && msg . t == "modify" && active != "map" )
9292 return ; // don't show an updated nav message if we're just in the menu
93- //showMessage(msg&&msg.id, false);
9493 showMessagesScroller ( msg , false )
9594} ;
9695Bangle . on ( "message" , onMessagesModified ) ;
@@ -524,7 +523,7 @@ function showMessage(msgid, persist) {
524523 var maxLines = Math . floor ( h / g . getFontHeight ( ) ) ;
525524 if ( lines . length > maxLines ) // if too long, wrap with a bit less spae so we have room for '...'
526525 body = g . setFont ( bodyFont ) . wrapString ( body , w - 10 ) . slice ( 0 , maxLines ) . join ( "\n" ) + "..." ;
527- else
526+ else
528527 body = lines . join ( "\n" ) ;
529528 }
530529 function goBack ( ) {
@@ -634,7 +633,6 @@ function checkMessages(options) {
634633 // If we have a new message, show it
635634 if ( ! options . ignoreUnread && newMessages . length ) {
636635 delete newMessages [ 0 ] . show ; // stop us getting stuck here if we're called a second time
637- //showMessage(newMessages[0].id, false);
638636 showMessagesScroller ( newMessages [ 0 ] , false ) ;
639637 // buzz after showMessage, so being busy during layout doesn't affect the buzz pattern
640638 if ( global . BUZZ_ON_NEW_MESSAGE ) {
0 commit comments