Skip to content
Snippets Groups Projects
Commit 9f1cfeda authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'dd_msg_reader_chg_empty_subboard_fix' into 'master'

DDMsgReader: Fix for bogus messages when changing to an empty sub-board

Closes #367

See merge request !154
parents 5faf70b3 347e2039
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!154DDMsgReader: Fix for bogus messages when changing to an empty sub-board
...@@ -123,6 +123,11 @@ ...@@ -123,6 +123,11 @@
* 2022-02-26 Eric Oulashin Version 1.45d * 2022-02-26 Eric Oulashin Version 1.45d
* Fix for no group information available when displaying the * Fix for no group information available when displaying the
* sub-board header above the message list when listing personal email * sub-board header above the message list when listing personal email
* 2022-03-07 Eric Oulashin Version 1.46
* Fix: When changing to an empty sub-board from within the
* reader (either from read mode or list mode), it now properly
* says there are no messages and exits, rather than showing
* a list of bogus messages.
*/ */
   
   
...@@ -243,8 +248,8 @@ if (system.version_num < 31500) ...@@ -243,8 +248,8 @@ if (system.version_num < 31500)
} }
   
// Reader version information // Reader version information
var READER_VERSION = "1.45d"; var READER_VERSION = "1.46";
var READER_DATE = "2022-02-26"; var READER_DATE = "2022-03-07";
   
// Keyboard key codes for displaying on the screen // Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24); var UP_ARROW = ascii(24);
...@@ -1543,7 +1548,6 @@ function DigDistMsgReader_PopulateHdrsForCurrentSubBoard() ...@@ -1543,7 +1548,6 @@ function DigDistMsgReader_PopulateHdrsForCurrentSubBoard()
} }
   
// Filter the headers into this.hdrsForCurrentSubBoard // Filter the headers into this.hdrsForCurrentSubBoard
if (tmpHdrs != null)
this.FilterMsgHdrsIntoHdrsForCurrentSubBoard(tmpHdrs, true); this.FilterMsgHdrsIntoHdrsForCurrentSubBoard(tmpHdrs, true);
} }
   
...@@ -1563,6 +1567,8 @@ function DigDistMsgReader_FilterMsgHdrsIntoHdrsForCurrentSubBoard(pMsgHdrs, pCle ...@@ -1563,6 +1567,8 @@ function DigDistMsgReader_FilterMsgHdrsIntoHdrsForCurrentSubBoard(pMsgHdrs, pCle
this.hdrsForCurrentSubBoard = []; this.hdrsForCurrentSubBoard = [];
this.hdrsForCurrentSubBoardByMsgNum = {}; this.hdrsForCurrentSubBoardByMsgNum = {};
} }
if (pMsgHdrs == null)
return;
   
for (var prop in pMsgHdrs) for (var prop in pMsgHdrs)
{ {
...@@ -3495,6 +3501,13 @@ function DigDistMsgReader_ListMessages_Lightbar(pAllowChgSubBoard) ...@@ -3495,6 +3501,13 @@ function DigDistMsgReader_ListMessages_Lightbar(pAllowChgSubBoard)
var userChoice = msgListMenu.GetVal(drawMenu); var userChoice = msgListMenu.GetVal(drawMenu);
drawMenu = true; drawMenu = true;
var lastUserInputUpper = (typeof(msgListMenu.lastUserInput) == "string" ? msgListMenu.lastUserInput.toUpperCase() : msgListMenu.lastUserInput); var lastUserInputUpper = (typeof(msgListMenu.lastUserInput) == "string" ? msgListMenu.lastUserInput.toUpperCase() : msgListMenu.lastUserInput);
// If the user's last input is null, then something bad/weird must have
// happened, so don't continue the input loop.
if (lastUserInputUpper == null)
{
continueOn = false;
break;
}
this.lightbarListSelectedMsgIdx = msgListMenu.selectedItemIdx; this.lightbarListSelectedMsgIdx = msgListMenu.selectedItemIdx;
// If userChoice is a number, then it will be a message number for a message to read // If userChoice is a number, then it will be a message number for a message to read
if (typeof(userChoice) == "number") if (typeof(userChoice) == "number")
......
Digital Distortion Message Reader Digital Distortion Message Reader
Version 1.45d Version 1.46
Release date: 2022-02-26 Release date: 2022-03-07
by by
......
...@@ -5,6 +5,11 @@ Revision History (change log) ...@@ -5,6 +5,11 @@ Revision History (change log)
============================= =============================
Version Date Description Version Date Description
------- ---- ----------- ------- ---- -----------
1.46 2022-03-07 Fix: When changing to an empty sub-board from within the
reader (either from read mode or list mode), it now
properly says there are no messages and exits, rather than
showing a list of bogus messages. Unsure when this bug
was introduced.
1.45d 2022-02-26 Fix for no group information available when displaying the 1.45d 2022-02-26 Fix for no group information available when displaying the
sub-board header above the message list when listing sub-board header above the message list when listing
personal email personal email
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment