{"action":"created","issue":{"url":"https://api.github.com/repos/status-im/status-react/issues/6005","repository_url":"https://api.github.com/repos/status-im/status-react","labels_url":"https://api.github.com/repos/status-im/status-react/issues/6005/labels{/name}","comments_url":"https://api.github.com/repos/status-im/status-react/issues/6005/comments","events_url":"https://api.github.com/repos/status-im/status-react/issues/6005/events","html_url":"https://github.com/status-im/status-react/issues/6005","id":363923376,"node_id":"MDU6SXNzdWUzNjM5MjMzNzY=","number":6005,"title":"'fx/defn expects a map of cofx...' error trying to clear 1-1/public chat history","user":{"login":"Serhy","id":8749671,"node_id":"MDQ6VXNlcjg3NDk2NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/8749671?v=4","gravatar_id":"","url":"https://api.github.com/users/Serhy","html_url":"https://github.com/Serhy","followers_url":"https://api.github.com/users/Serhy/followers","following_url":"https://api.github.com/users/Serhy/following{/other_user}","gists_url":"https://api.github.com/users/Serhy/gists{/gist_id}","starred_url":"https://api.github.com/users/Serhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Serhy/subscriptions","organizations_url":"https://api.github.com/users/Serhy/orgs","repos_url":"https://api.github.com/users/Serhy/repos","events_url":"https://api.github.com/users/Serhy/events{/privacy}","received_events_url":"https://api.github.com/users/Serhy/received_events","type":"User","site_admin":false},"labels":[{"id":330296931,"node_id":"MDU6TGFiZWwzMzAyOTY5MzE=","url":"https://api.github.com/repos/status-im/status-react/labels/bug","name":"bug","color":"fc2929","default":true},{"id":795655580,"node_id":"MDU6TGFiZWw3OTU2NTU1ODA=","url":"https://api.github.com/repos/status-im/status-react/labels/chat","name":"chat","color":"f70cb0","default":false},{"id":916015974,"node_id":"MDU6TGFiZWw5MTYwMTU5NzQ=","url":"https://api.github.com/repos/status-im/status-react/labels/e2e%20test%20blocker","name":"e2e test blocker","color":"bc0753","default":false},{"id":517247009,"node_id":"MDU6TGFiZWw1MTcyNDcwMDk=","url":"https://api.github.com/repos/status-im/status-react/labels/high-priority","name":"high-priority","color":"000000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-26T08:57:59Z","updated_at":"2018-09-26T08:59:04Z","closed_at":null,"author_association":"MEMBER","body":"\r\n***Type***: Bug\r\n\r\n***Summary***: \r\nAn error appears when contact tries to clear 1-1 / public chat history. \r\nChat history is not cleared.\r\nUser can proceed to use the app fine. \r\n\r\n#### Expected behavior\r\n1-1 / public chat history is cleared upon confirm \"Are you sure you want to clear this chat history?\" popup \r\n#### Actual behavior\r\n<img width=\"216\" alt=\"screen shot 2018-09-26 at 11 51 28\" src=\"https://user-images.githubusercontent.com/8749671/46068738-8c62e200-c182-11e8-93d1-207b0fc55ef3.png\">\r\n\r\n\r\n### Reproduction\r\n- Open Status and create new account\r\n- Add a new contact to start 1-1 chat\r\n- Join `#status` public channel\r\n- In public chat tap top-right menu button -> `Clear history`\r\n- In appeared `Clear history?` pop-up tap `Clear` button\r\n**Actual result:**  `fx/defn expects a map of cofx...` error\r\n- Navigate to 1-1 chat -> top-right chat menu button -> `Clear history` -> `Clear`\r\n**Actual result:**  `fx/defn expects a map of cofx...` error\r\n\r\n### Additional Information\r\n* Status version: Develop `0.9.29 (9168); node 0.15.0`\r\n* Operating System: Android and iOS\r\n\r\n#### Logs\r\n\r\nTF session with logs: https://app.testfairy.com/projects/4803622-status/builds/8606183/sessions/4402350466/?accessToken=CMJEQ3G4iyf7/mVaeDG46SXx7io\r\n\r\n`fx/defn expects a map of cofx as first argument got yyyt in function function (e) {switch(arguments.length){case 1:return status_im.chat.models.clear_history.cljs$core$IFn$_invoke$arity$1(arguments[0]);case 2:return status_im.chat.models.clear_history.cljs$core$IFn$_invoke$arity$2(arguments[0],arguments[1]);default:throw Error([\"Invalid arity: \",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(\"\"))}}\r\n`\n\n<blockquote><div><strong><a href=\"https://app.testfairy.com/projects/4803622-status/builds/8606183/sessions/4402350466/?accessToken=CMJEQ3G4iyf7/mVaeDG46SXx7io\">TestFairy: Status 0.9.29 (9168) @2018</a></strong></div></blockquote>"},"comment":{"url":"https://api.github.com/repos/status-im/status-react/issues/comments/424639952","html_url":"https://github.com/status-im/status-react/issues/6005#issuecomment-424639952","issue_url":"https://api.github.com/repos/status-im/status-react/issues/6005","id":424639952,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDYzOTk1Mg==","user":{"login":"Serhy","id":8749671,"node_id":"MDQ6VXNlcjg3NDk2NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/8749671?v=4","gravatar_id":"","url":"https://api.github.com/users/Serhy","html_url":"https://github.com/Serhy","followers_url":"https://api.github.com/users/Serhy/followers","following_url":"https://api.github.com/users/Serhy/following{/other_user}","gists_url":"https://api.github.com/users/Serhy/gists{/gist_id}","starred_url":"https://api.github.com/users/Serhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Serhy/subscriptions","organizations_url":"https://api.github.com/users/Serhy/orgs","repos_url":"https://api.github.com/users/Serhy/repos","events_url":"https://api.github.com/users/Serhy/events{/privacy}","received_events_url":"https://api.github.com/users/Serhy/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T08:59:04Z","updated_at":"2018-09-26T08:59:04Z","author_association":"MEMBER","body":"Reproduced in Status Desktop as well"}}
{"actor":{"display_login":"Serhy"}}