{"action":"closed","issue":{"url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/119","repository_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/119/comments","events_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/119/events","html_url":"https://github.com/QuickBlox/quickblox-javascript-sdk/issues/119","id":139880746,"number":119,"title":"Different 1-1 Private Chat Dialogs for same occupants based on data properties","user":{"login":"hash1492","id":8502490,"avatar_url":"https://avatars.githubusercontent.com/u/8502490?v=3","gravatar_id":"","url":"https://api.github.com/users/hash1492","html_url":"https://github.com/hash1492","followers_url":"https://api.github.com/users/hash1492/followers","following_url":"https://api.github.com/users/hash1492/following{/other_user}","gists_url":"https://api.github.com/users/hash1492/gists{/gist_id}","starred_url":"https://api.github.com/users/hash1492/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hash1492/subscriptions","organizations_url":"https://api.github.com/users/hash1492/orgs","repos_url":"https://api.github.com/users/hash1492/repos","events_url":"https://api.github.com/users/hash1492/events{/privacy}","received_events_url":"https://api.github.com/users/hash1492/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-10T13:08:39Z","updated_at":"2016-03-11T04:58:22Z","closed_at":"2016-03-11T04:58:22Z","body":"I have a use case in my project where two people can have multiple chat dialogs between them depending the the topic. For Example: Person A and Person B have a chat dialog for topic X. Same two people also have another chat dialog for topic Y. \r\n\r\nI tried creating dialogs by provding topic related details in the params object. Here is my code:\r\n\r\n```\r\nvar params = {\r\n                type: 3,\r\n                occupants_ids: [user_quickblox_id],\r\n                data: {\r\n                  class_name: \"Ads\",\r\n                  ad_id: ad_id,\r\n                  ad_title: $scope.ad_detail.title,\r\n                  ad_user: $scope.ad_detail.personal_info.name\r\n                },\r\n              };\r\n\r\n              QB.chat.dialog.create(params, function(err, createdDialog) {\r\n                if (err) {\r\n                  console.log(err);\r\n                } else {\r\n                  console.log(createdDialog);\r\n                 ...\r\n                }\r\n              });\r\n ```\r\n\r\nWhat is happening is that the first dialog is created successfully (Lets call this Dialog 1), with the data properties.\r\nBut when I try to create another dialog with the same occupants but different data properties, I am returned with the previously created dialog of those occupants, which is Dialog 1.\r\n\r\nQuestion: Is it possible for 2 occupants to have multiple 1-1 Private chat dialogs based on different data properties? \r\n\r\nPlease reply at the earliest as it is interupting my work.\r\nThanks"}}