Skip to content

xep-0313: Add message to history only if conv is not NULL

Fabio Comuni requested to merge fabrixxm/chatty:fix/mam-crash into master

I've got a case where Chatty was crashing, having conv to NULL. While I was debugging this I found that pcm->who was also NULL. This is a quick fix which allowed me to continue to use Chatty.

Obviously, this way the incoming message is not saved in history db.

Unfortunately I can't manage to reproduce the issue anymore to give more context to the problem.

Edited by Fabio Comuni

Merge request reports