浏览代码

Fix don't validate arguments for create/group & create/distributionList (#666)

While the same method is being used for create/contact and the ARP
defines `args` for that message`, it is not being used for anything. It
was incorrectly looked at for create/group and create/distributionList
responses.
Lennart Grahl 6 年之前
父节点
当前提交
98dca6bc46
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      src/services/webclient.ts

+ 1 - 8
src/services/webclient.ts

@@ -2357,15 +2357,8 @@ export class WebClientService {
             return future.reject(message.ack.error);
         }
 
-        // Unpack and validate args
-        const args = message.args;
+        // Unpack and validate data
         const data = message.data;
-        if (args === undefined) {
-            this.$log.error(`Invalid ${receiverType} response, args or data missing`);
-            return future.reject('invalidResponse');
-        }
-
-        // Validate data
         if (data === undefined) {
             this.$log.error(`Invalid ${receiverType} response, 'data' is missing`);
             return future.reject('invalidResponse');