• DDMsgReader bug fix: When viewing a poll that the user has posted and

    From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Wednesday, November 20, 2024 14:52:56
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/474#note_6035

    This is not the proper criteria to determine a message is a ballot.

    Compare the message header's `type` property, if its value is equal to `MSG_TYPE_BALLOT`, it's a ballot.

    If you want a faster method (no need to read message header), you can tell a message is a ballot from the message's index record: bit-wise AND the index `attr` property with `MSG_VOTE`, if the result is non-zero, message is a ballot:
    ```
    if ((index.attr & MSG_VOTE) != 0) { /* message is a ballot */ }
    ```
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)