Fix wrong message count when checking new messages
Fix wrong message count when checking new messages

Regression was introduced in commit: 580e4415e24f3a7496f930aac9a2386148a56ebf

nerzhul/ocsms,nerzhul/ocsms