This should fix some bugs with groups:

 - No more "this group requires an invitation" message
   Caused by new groups with new messages awaiting to be delivered at boot
 - No more messages lost due to whatsapp disconnect.

Needs to be checked though!

David