taksan / skype-java-api

Skype API for Java, based on Skype4Java library
128 stars 57 forks source link

chatMessageReceived sometimes called twice #30

Closed sashok7241 closed 10 years ago

sashok7241 commented 11 years ago

Sometimes chatMessageReceived called twice....

NiccosSystem commented 11 years ago

Extremely annoying, would be great if it was fixed

NiccosSystem commented 11 years ago

It's called twice because it first calls it when you receive the message and then when you open the Skype app it calls it again. To solve this locally, I made a List, and then in the chatMessageReceived method I check if the ChatMessage already exists in the list. If it is, I return; and if it is not, I add it to the list.