Commit 3471c396 authored by mku's avatar mku

ZP-379 #comment Reply/Forward flags are not synced from the server to the...

ZP-379 #comment Reply/Forward flags are not synced from the server to the mobile - function to convert to AS-style last verb executed value from the server value  #time 5m

git-svn-id: https://z-push.org/svn/z-push/trunk@1667 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent c3a9273b
...@@ -863,6 +863,24 @@ class Utils { ...@@ -863,6 +863,24 @@ class Utils {
} }
return true; return true;
} }
/**
* Returns AS-style LastVerbExecuted value from the server value.
*
* @param int $verb
*
* @access public
* @return int
*/
public static function GetLastVerbExecuted($verb) {
switch ($verb) {
case NOTEIVERB_REPLYTOSENDER: return AS_REPLYTOSENDER;
case NOTEIVERB_REPLYTOALL: return AS_REPLYTOALL;
case NOTEIVERB_FORWARD: return AS_FORWARD;
}
return 0;
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment