jquast / x84

A python telnet/ssh server for modern terminals. In spirit of classic software such as ami/x, teleguard, renegade, iniquity.

Home Page:http://x84.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

inaccessible messages included in unread count

haliphax opened this issue · comments

When showing the count of unread messages, private messages to other users (which the message reader will not show) are included in the total.

Additionally, using 'm' to 'mark all as read' when there are (public) unread messages brings the unread count to 0.

try moving all_private = list_privmsgs(None) to line 143,
then deleting lines 155, 156,

messages['new'] -= all_private
messages['all'] -= all_private

then changing all occurrences of .update(msg_indicies) to .update(msg_indicies - all_private)

I'll give that a shot this week.

Looks like that fix does work. I'm going to ride it out for a day or two and then send a PR.

Hmmm... well, my own unread private messages are no longer included in the count. I'll tweak that and test again.

tags may also have to be filtered away. I have tags for messages I can't read.