deltachat / deltachat-core

Delta.Chat C-Library with e2e chat-over-email functionality & Python bindings
https://c.delta.chat
Other
304 stars 27 forks source link

DC_EVENT_INCOMING_MSG not emitted on receiving new message #689

Open nicodh opened 5 years ago

nicodh commented 5 years ago

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 commented 5 years ago

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