quote:
Originally posted by Tobiaz
If i sign in, there appers many Toast: One for every contact. Even if he is offline, the plugin let me know this... Do you know what i mean!?
If i sing in, theres a toast for every contact with his actual status...
How can I prevent this!?
As hmaster said, remove the line containing the test for MISTATUS_OFFLINE.
Quick tip: Since the MISTATUS enum is numbers, use a Select...Case construct. The code will look cleaner, and will run better.
Quick tip 2: For a quick-and-easy online check, regardless of status, use 'pIMContact.Status & MISTATUS_ONLINE'.
Quick tip 3: You should be able to prevent it showing toasts when you sign in if you check if the old status is equal to MISTATUS_UNKNOWN (IIRC, double-check).