{"action":"created","issue":{"url":"https://api.github.com/repos/nerzhul/ocsms/issues/121","repository_url":"https://api.github.com/repos/nerzhul/ocsms","labels_url":"https://api.github.com/repos/nerzhul/ocsms/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/nerzhul/ocsms/issues/121/comments","events_url":"https://api.github.com/repos/nerzhul/ocsms/issues/121/events","html_url":"https://github.com/nerzhul/ocsms/issues/121","id":186095193,"number":121,"title":"Conversations are split between two threads","user":{"login":"rykeon990","id":17012325,"avatar_url":"https://avatars.githubusercontent.com/u/17012325?v=3","gravatar_id":"","url":"https://api.github.com/users/rykeon990","html_url":"https://github.com/rykeon990","followers_url":"https://api.github.com/users/rykeon990/followers","following_url":"https://api.github.com/users/rykeon990/following{/other_user}","gists_url":"https://api.github.com/users/rykeon990/gists{/gist_id}","starred_url":"https://api.github.com/users/rykeon990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rykeon990/subscriptions","organizations_url":"https://api.github.com/users/rykeon990/orgs","repos_url":"https://api.github.com/users/rykeon990/repos","events_url":"https://api.github.com/users/rykeon990/events{/privacy}","received_events_url":"https://api.github.com/users/rykeon990/received_events","type":"User","site_admin":false},"labels":[{"id":128939035,"url":"https://api.github.com/repos/nerzhul/ocsms/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-29T19:05:05Z","updated_at":"2016-11-23T18:15:17Z","closed_at":null,"body":"<!--\nThanks for reporting issues back to us! \n\nTo make it possible for us to help you please fill out below information carefully.\n--> \n### Steps to reproduce\n1.  Open the SMS app with the owncloud web interface (Issue is the same for all browsers)\n2. Different / multiple contact phone numbers entries? (I'm not sure this is the cause)\n   3.\n### Expected behaviour\n\nConversations with contacts appear in one thread.\n### Actual behaviour\n\nI see two entries in the owncloud interface, one entry contains messages I've sent (It seems to contain all messages I've sent to that phone number) and another thread has the messages I've received from that number. It appears to be connected with the phone number, or something with the vcard contacts being imported with slightly different numbers.\n\nexamples 123-456-7890 vs (123)-456-7890 vs +11234567890\n### Server configuration\n\n**ownCloud version: 9.1.1\n\n**PHP version: 5.6\n\n**HTTPd server: Apache (Debain Jessie)\n\n**HTTPS:** Yes\n### Client configuration\n\n**Android version:** 6.0.1\n\n**Phone:** Xperia Z3\n\n**ownCloud SMS app version:** 0.22.1\n### Logs\n\nError   index   Exception: {\"Exception\":\"Doctrine\\DBAL\\Exception\\DriverException\",\"Message\":\"An exception occurred while executing 'DELETE FROM oc_ocsms_smsdatas WHERE user_id = ? AND sms_id = ?' with params [\\\"username\\\", 11604]:\\n\\nSQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/DBALException.php(116): Doctrine\\DBAL\\Driver\\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\\DBAL\\Driver\\PDOException))\\n#1 \\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Statement.php(175): Doctrine\\DBAL\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\DBAL\\Driver\\PDOMySql\\Driver), Object(Doctrine\\DBAL\\Driver\\PDOException), 'DELETE FROM oc_...', Array)\\n#2 \\/var\\/www\\/owncloud\\/lib\\/private\\/legacy\\/db\\/statementwrapper.php(73): Doctrine\\DBAL\\Statement->execute(Array)\\n#3 \\/var\\/www\\/owncloud\\/apps\\/ocsms\\/db\\/smsmapper.php(314): OC_DB_StatementWrapper->execute(Array)\\n#4 \\/var\\/www\\/owncloud\\/apps\\/ocsms\\/controller\\/apicontroller.php(82): OCA\\OcSms\\Db\\SmsMapper->writeToDB('username', Array)\\n#5 [internal function]: OCA\\OcSms\\Controller\\ApiController->push(8935, Array)\\n#6 \\/var\\/www\\/owncloud\\/lib\\/private\\/AppFramework\\/Http\\/Dispatcher.php(159): call_user_func_array(Array, Array)\\n#7 \\/var\\/www\\/owncloud\\/lib\\/private\\/AppFramework\\/Http\\/Dispatcher.php(89): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\OcSms\\Controller\\ApiController), 'push')\\n#8 \\/var\\/www\\/owncloud\\/lib\\/private\\/AppFramework\\/App.php(110): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\OcSms\\Controller\\ApiController), 'push')\\n#9 \\/var\\/www\\/owncloud\\/lib\\/private\\/AppFramework\\/Routing\\/RouteActionHandler.php(46): OC\\AppFramework\\App::main('ApiController', 'push', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#10 [internal function]: OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\\n#11 \\/var\\/www\\/owncloud\\/lib\\/private\\/Route\\/Router.php(280): call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler), Array)\\n#12 \\/var\\/www\\/owncloud\\/lib\\/base.php(891): OC\\Route\\Router->match('\\/apps\\/ocsms\\/pus...')\\n#13 \\/var\\/www\\/owncloud\\/index.php(39): OC::handleRequest()\\n#14 {main}\",\"File\":\"\\/var\\/www\\/owncloud\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/AbstractMySQLDriver.php\",\"Line\":115}    2016-10-29T18:40:36+00:00\nError   PHP     call_user_func() expects parameter 1 to be a valid callback, class 'OCA\\OcSms\\Db\\Config' not found at /var/www/owncloud/lib/public/AppFramework/Db/Mapper.php#331   2016-10-29T17:34:03+00:00 \n"},"comment":{"url":"https://api.github.com/repos/nerzhul/ocsms/issues/comments/262591827","html_url":"https://github.com/nerzhul/ocsms/issues/121#issuecomment-262591827","issue_url":"https://api.github.com/repos/nerzhul/ocsms/issues/121","id":262591827,"user":{"login":"gkleman","id":9120842,"avatar_url":"https://avatars.githubusercontent.com/u/9120842?v=3","gravatar_id":"","url":"https://api.github.com/users/gkleman","html_url":"https://github.com/gkleman","followers_url":"https://api.github.com/users/gkleman/followers","following_url":"https://api.github.com/users/gkleman/following{/other_user}","gists_url":"https://api.github.com/users/gkleman/gists{/gist_id}","starred_url":"https://api.github.com/users/gkleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkleman/subscriptions","organizations_url":"https://api.github.com/users/gkleman/orgs","repos_url":"https://api.github.com/users/gkleman/repos","events_url":"https://api.github.com/users/gkleman/events{/privacy}","received_events_url":"https://api.github.com/users/gkleman/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T18:15:17Z","updated_at":"2016-11-23T18:15:17Z","body":"I'm not sure that the parenthesis is the issue.  I shouldn't have written the parenthesis in my example.  I have split threads with 1234567890 and +11234567890.  With the +1 being the messages received by my phone, and the no +1 being the messages sent from my phone.  Also, looking back at the messages, this started after September 26 (not October)."}}
{"actor":{"display_login":"gkleman"}}