Skip to content
This repository was archived by the owner on Mar 25, 2022. It is now read-only.
This repository was archived by the owner on Mar 25, 2022. It is now read-only.

Skype-API ChatMessageAdapter doesn't receive first message.  #72

@a2910114

Description

@a2910114

Hi,
I use next code to receive messages:

public void listenSimpleMessage() throws SkypeException {
        System.out.println("start listen messages");
        Skype.setDaemon(false);
        ChatMessageAdapter listener = new ChatMessageAdapter() {
            @Override
            public void chatMessageReceived(ChatMessage receivedChatMessage) throws SkypeException {
                if (receivedChatMessage.getType().equals(ChatMessage.Type.SAID)) {
                    User sender = receivedChatMessage.getSender();

                    System.out.println("sender" + sender);
                    System.out.println("message content" + receivedChatMessage.getContent());
                    System.out.println("finish");

                }
            }
        };

        Skype.addChatMessageListener(listener);
    }

It works as appropriate when I send message just after code run. But when I send message after break (about 30 sec.) code doesn't receive message. If I send two messages one by one code receives only second message.

I'm going to provide more detailed information about skype version, OS and JDK this evening.
OS: Windows 7, jdk1.8.0_45, Skype version: 7.16.0.102
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions