[Messaging] Fix for opId in syncFolder
authorJerzy Pabich <j.pabich@samsung.com>
Wed, 31 Dec 2014 08:52:03 +0000 (09:52 +0100)
committerJerzy Pabich <j.pabich@samsung.com>
Wed, 31 Dec 2014 08:53:29 +0000 (09:53 +0100)
Change-Id: Id5ec8ed618ede37c7e070bcc772f40e079029ed7
Signed-off-by: Jerzy Pabich <j.pabich@samsung.com>
src/messaging/messaging_api.js

index 933cd12ab0fe04c3579029de9c8a99844e91b550..fd2a83ff3ab35dc762ce7551016a4ebb10904320 100644 (file)
@@ -653,6 +653,7 @@ MessageService.prototype.loadMessageAttachment = function () {
         }
     });
 };
+
 MessageService.prototype.sync = function () {
     var args = validator_.validateArgs(arguments, [
         {name: 'successCallback', type: types_.FUNCTION, optional: true, nullable: true},
@@ -688,6 +689,7 @@ MessageService.prototype.sync = function () {
 
     return result;
 };
+
 MessageService.prototype.syncFolder = function () {
     var args = validator_.validateArgs(arguments, [
         {name: 'folder', type: types_.PLATFORM_OBJECT, values: MessageFolder},
@@ -722,7 +724,10 @@ MessageService.prototype.syncFolder = function () {
             limit: args.limit || null
         }
     });
+
+    return result;
 };
+
 MessageService.prototype.stopSync = function () {
     var args = validator_.validateArgs(arguments, [
         {name: 'opId', type: types_.LONG}