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

DC_EVENT_INCOMING_MSG not emitted on receiving new message #689

Open
nicodh opened this issue Jun 10, 2019 · 1 comment
Open

DC_EVENT_INCOMING_MSG not emitted on receiving new message #689

nicodh opened this issue Jun 10, 2019 · 1 comment

Comments

@nicodh
Copy link
Contributor

nicodh commented Jun 10, 2019

Not sure if this is a desktop, a node-bindings or a core issue:
When I track the events that are emitted when receiving a new message in deltachat_desktop I see only DC_EVENT_MSGS_CHANGED but not DC_EVENT_INCOMING_MSG

If I call dc_get_fresh_msgs immediately after receiving the message the number of fresh messages is not increased. I see the new message in the database and it is has state 26 instead of 10...

When new messages are received during desktop being closed they have the correct state in database (which indicates that the error might be in desktop) but nevertheless the DC_EVENT_INCOMING_MSG should be emitted before anything else happens...

@r10s
Copy link
Member

r10s commented Jun 10, 2019

hm, i think, the core emits them. at least on android we rely on them eg. for notifications.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants