Re: last_read and scan_ptr values
By: Nightfox to Digital Man on Wed Mar 25 2015 09:39 pm
> Hi DM,
>
> In the msg_area.grp_list.sub_list array, when should the scan_ptr and
> last_read values be updated for a sub-board? For instance, when simply
> reading messages (i.e., not doing a newscan), would both of those be updated
> or would only last_read be updated? And conversely, when reading messages
> during a newscan, would only the scan_ptr value be updated, or would both
> scan_ptr and last_read be updated?
Any time the currently displayed message number is greater than the current
scan_ptr, the scan_ptr should be updated. For every message displayed, the
last_read should be updated. These apply regardless of the method of message
reading/scanning.
> Also, it looks like there's a typo in the Synchronet JS documentation at
> http://www.synchro.net/docs/jsobjs.html - Under the
> "msg_area.grp_list.sub_list array" section, the last row in the table has
> "lead_read" - I believe that should be "last_read"?
Yeah, that was fixed quite a while ago but the jsobjs.html hasn't be
re-generated since then. Thanks,
digital man
Synchronet "Real Fact" #3:
Synchronet version 3 is written mostly in C, with some C++, x86 ASM, and Pascal.
Norco, CA WX: 75.0°F, 26.0% humidity, 1 mph SE wind, 0.00 inches rain/24hrs
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net
|