API: Bugfix: Wrong contact ids with direct messages