handle info_des correctly for android, prevent destroying info_des on IOS-devices

This commit is contained in:
leithoff 2016-06-10 15:06:29 +02:00
parent 0f7ca734e3
commit 61b99bc32e

View File

@ -410,7 +410,13 @@ class infolog_zpush implements activesync_plugin_write
switch ($attr)
{
case 'info_des':
$infolog[$attr] = $this->backend->messagenote2note($message->body, $message->rtf, $message->airsyncbasebody);
if (is_null($message->asbody)) $message->asbody = new SyncBaseBody();
// only change info_des, if one given, as iOS5 skips description in ChangeMessage
// --> we ignore empty / not set description, so description get no longer lost, but you cant empty it via eSync
if (($description = $this->backend->messagenote2note($message->body, $message->rtf, $message->asbody)))
{
$infolog[$attr] = $description;
}
break;
case 'info_cat':