{"action":"created","issue":{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/554","repository_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/554/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/554/comments","events_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/554/events","html_url":"https://github.com/QuickBlox/quickblox-ios-sdk/issues/554","id":167432879,"number":554,"title":"Chat Dialog Delete issue - getting permission error","user":{"login":"ajayrigaps","id":16572485,"avatar_url":"https://avatars.githubusercontent.com/u/16572485?v=3","gravatar_id":"","url":"https://api.github.com/users/ajayrigaps","html_url":"https://github.com/ajayrigaps","followers_url":"https://api.github.com/users/ajayrigaps/followers","following_url":"https://api.github.com/users/ajayrigaps/following{/other_user}","gists_url":"https://api.github.com/users/ajayrigaps/gists{/gist_id}","starred_url":"https://api.github.com/users/ajayrigaps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajayrigaps/subscriptions","organizations_url":"https://api.github.com/users/ajayrigaps/orgs","repos_url":"https://api.github.com/users/ajayrigaps/repos","events_url":"https://api.github.com/users/ajayrigaps/events{/privacy}","received_events_url":"https://api.github.com/users/ajayrigaps/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/labels/needs%20further%20investigation","name":"needs further investigation","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":35,"created_at":"2016-07-25T18:25:19Z","updated_at":"2016-08-05T09:00:58Z","closed_at":null,"body":"I have an issue with Chat dialog delete . Below are the major issues i am facing while implementing the chat in my project . need help asap on the same .\r\n\r\n1 . I have pinged opponent and a chat dialog get created for example with id -123456789. \r\nNow this dialog is same for both initiator and opponent .\r\na . Now If initiator deletes his dialog , It will be deleted successfully . (Delete for all users - NO)\r\nb. But if Opponent is trying to delete the same dialog at his end , getting Wrong Permission error\r\n\r\nSame scenario there is a dialog get created between 2 users ID - 123456789 now if either one of the user deleted the dialog , It will be deleted in his end . Now Opponent doesn't know that the dialog is deleted . If opponent ping some thing on dialog messages are appearing on the screen but going no where , There is no dialog created and no initiator receives messages . But the message sender is in a perception that messages are going fine . How to handle this scenario .\r\n\r\n\r\n\r\nEvery chat is a private chat in the above case i explained .\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/comments/237797801","html_url":"https://github.com/QuickBlox/quickblox-ios-sdk/issues/554#issuecomment-237797801","issue_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/554","id":237797801,"user":{"login":"Raikerian","id":8850270,"avatar_url":"https://avatars.githubusercontent.com/u/8850270?v=3","gravatar_id":"","url":"https://api.github.com/users/Raikerian","html_url":"https://github.com/Raikerian","followers_url":"https://api.github.com/users/Raikerian/followers","following_url":"https://api.github.com/users/Raikerian/following{/other_user}","gists_url":"https://api.github.com/users/Raikerian/gists{/gist_id}","starred_url":"https://api.github.com/users/Raikerian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raikerian/subscriptions","organizations_url":"https://api.github.com/users/Raikerian/orgs","repos_url":"https://api.github.com/users/Raikerian/repos","events_url":"https://api.github.com/users/Raikerian/events{/privacy}","received_events_url":"https://api.github.com/users/Raikerian/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T09:00:58Z","updated_at":"2016-08-05T09:00:58Z","body":"Your logs are pretty much same - they does not contain any Quickblox log.\r\nHere is the example of dialog deletion log:\r\n\r\n```\r\n2016-08-05 12:00:18.050 Q-municate[1534:64961] [QBCore] Request URL:https://api.quickblox.com/chat/Dialog/57a33744a28f9ade8900001e.json\r\n2016-08-05 12:00:18.051 Q-municate[1534:64961] [QBCore] Request method: DELETE\r\n2016-08-05 12:00:18.051 Q-municate[1534:64961] [QBCore] Request parameters:(null)\r\n2016-08-05 12:00:18.051 Q-municate[1534:64961] [QBCore] Request headers: {\r\n    \"Accept-Language\" = \"en;q=1\";\r\n    \"QB-OS\" = \"iOS 8.1\";\r\n    \"QB-SDK\" = \"iOS 2.7.5\";\r\n    \"QB-Token\" = f6776af9fc28f9a876161c5940bfd1c8feb240ba;\r\n    \"QuickBlox-REST-API-Version\" = \"0.1.1\";\r\n    \"User-Agent\" = \"Q-municate/2.1 (iPhone Simulator; iOS 8.1; Scale/2.00)\";\r\n}\r\n2016-08-05 12:00:18.752 Q-municate[1534:64973] [QBCore] Response headers: {\r\n    \"Access-Control-Allow-Origin\" = \"*\";\r\n    \"Cache-Control\" = \"max-age=0, private, must-revalidate\";\r\n    Connection = \"keep-alive\";\r\n    \"Content-Length\" = 1;\r\n    \"Content-Type\" = \"application/json; charset=utf-8\";\r\n    Date = \"Fri, 05 Aug 2016 09:00:18 GMT\";\r\n    Etag = \"\\\"7215ee9c7d9dc229d2921a40e899ec5f\\\"\";\r\n    \"QB-Token-ExpirationDate\" = \"2016-08-05 10:58:47 UTC\";\r\n    \"QuickBlox-REST-API-Version\" = \"0.1.1\";\r\n    Server = \"openresty/1.9.15.1\";\r\n    Status = \"200 OK\";\r\n    \"Strict-Transport-Security\" = \"max-age=15768000;\";\r\n    \"X-Rack-Cache\" = \"invalidate, pass\";\r\n    \"X-Request-Id\" = f2944d43f77178c17f854995c61b3e7b;\r\n    \"X-Runtime\" = \"0.101952\";\r\n    \"X-UA-Compatible\" = \"IE=Edge,chrome=1\";\r\n}\r\n```\r\n\r\nWe have already checked it on our end. Everything is fine."}}
{"actor":{"display_login":"Raikerian"}}