{"action":"created","comment":{"url":"https://api.github.com/repos/omemo/gajim-omemo/pulls/comments/65911237","id":65911237,"diff_hunk":"@@ -92,4 +92,20 @@ def migrate(dbConn):\n                                      END TRANSACTION;\n                                  \"\"\" % (create_table))\n \n+    if user_version(dbConn) < 2:\n+        delete_dupes = \"\"\" DELETE FROM identities WHERE _id not in (\n+                            SELECT MIN(_id)\n+                            FROM identities\n+                            GROUP BY\n+                            recipient_id, public_key\n+                            );\n+                        \"\"\"\n+","path":"omemo/encryption.py","position":12,"original_position":12,"commit_id":"767d8da646467e701dc07611ba5462761b0ce0b8","original_commit_id":"767d8da646467e701dc07611ba5462761b0ce0b8","user":{"login":"kalkin","id":145191,"avatar_url":"https://avatars.githubusercontent.com/u/145191?v=3","gravatar_id":"","url":"https://api.github.com/users/kalkin","html_url":"https://github.com/kalkin","followers_url":"https://api.github.com/users/kalkin/followers","following_url":"https://api.github.com/users/kalkin/following{/other_user}","gists_url":"https://api.github.com/users/kalkin/gists{/gist_id}","starred_url":"https://api.github.com/users/kalkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalkin/subscriptions","organizations_url":"https://api.github.com/users/kalkin/orgs","repos_url":"https://api.github.com/users/kalkin/repos","events_url":"https://api.github.com/users/kalkin/events{/privacy}","received_events_url":"https://api.github.com/users/kalkin/received_events","type":"User","site_admin":false},"body":"Don't we need to add an Index to prevent duplicate entries in the future?","created_at":"2016-06-06T15:27:51Z","updated_at":"2016-06-06T15:27:51Z","html_url":"https://github.com/omemo/gajim-omemo/pull/61#discussion_r65911237","pull_request_url":"https://api.github.com/repos/omemo/gajim-omemo/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/omemo/gajim-omemo/pulls/comments/65911237"},"html":{"href":"https://github.com/omemo/gajim-omemo/pull/61#discussion_r65911237"},"pull_request":{"href":"https://api.github.com/repos/omemo/gajim-omemo/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/omemo/gajim-omemo/pulls/61","id":72631028,"html_url":"https://github.com/omemo/gajim-omemo/pull/61","diff_url":"https://github.com/omemo/gajim-omemo/pull/61.diff","patch_url":"https://github.com/omemo/gajim-omemo/pull/61.patch","issue_url":"https://api.github.com/repos/omemo/gajim-omemo/issues/61","number":61,"state":"open","locked":false,"title":"Fingerprint Dialog & MAM","user":{"login":"lovetox","id":8661218,"avatar_url":"https://avatars.githubusercontent.com/u/8661218?v=3","gravatar_id":"","url":"https://api.github.com/users/lovetox","html_url":"https://github.com/lovetox","followers_url":"https://api.github.com/users/lovetox/followers","following_url":"https://api.github.com/users/lovetox/following{/other_user}","gists_url":"https://api.github.com/users/lovetox/gists{/gist_id}","starred_url":"https://api.github.com/users/lovetox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovetox/subscriptions","organizations_url":"https://api.github.com/users/lovetox/orgs","repos_url":"https://api.github.com/users/lovetox/repos","events_url":"https://api.github.com/users/lovetox/events{/privacy}","received_events_url":"https://api.github.com/users/lovetox/received_events","type":"User","site_admin":false},"body":"- Fingerprint Dialog from ChatWindow\r\n- Config Dialog from Plugin Window\r\n- MAM Message handling\r\n- Trust of Fingerprint is checked before sending and receiving Messages\r\n- Better Warning about what the current state of the Plugin is, and if a Message arrived unencrypted through MAM","created_at":"2016-06-05T14:41:19Z","updated_at":"2016-06-06T15:27:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f5c73600d05f0208a654a2875eea58e1ba67e08","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/omemo/gajim-omemo/pulls/61/commits","review_comments_url":"https://api.github.com/repos/omemo/gajim-omemo/pulls/61/comments","review_comment_url":"https://api.github.com/repos/omemo/gajim-omemo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omemo/gajim-omemo/issues/61/comments","statuses_url":"https://api.github.com/repos/omemo/gajim-omemo/statuses/767d8da646467e701dc07611ba5462761b0ce0b8","head":{"label":"lovetox:master","ref":"master","sha":"767d8da646467e701dc07611ba5462761b0ce0b8","user":{"login":"lovetox","id":8661218,"avatar_url":"https://avatars.githubusercontent.com/u/8661218?v=3","gravatar_id":"","url":"https://api.github.com/users/lovetox","html_url":"https://github.com/lovetox","followers_url":"https://api.github.com/users/lovetox/followers","following_url":"https://api.github.com/users/lovetox/following{/other_user}","gists_url":"https://api.github.com/users/lovetox/gists{/gist_id}","starred_url":"https://api.github.com/users/lovetox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovetox/subscriptions","organizations_url":"https://api.github.com/users/lovetox/orgs","repos_url":"https://api.github.com/users/lovetox/repos","events_url":"https://api.github.com/users/lovetox/events{/privacy}","received_events_url":"https://api.github.com/users/lovetox/received_events","type":"User","site_admin":false},"repo":{"id":59856023,"name":"gajim-omemo","full_name":"lovetox/gajim-omemo","owner":{"login":"lovetox","id":8661218,"avatar_url":"https://avatars.githubusercontent.com/u/8661218?v=3","gravatar_id":"","url":"https://api.github.com/users/lovetox","html_url":"https://github.com/lovetox","followers_url":"https://api.github.com/users/lovetox/followers","following_url":"https://api.github.com/users/lovetox/following{/other_user}","gists_url":"https://api.github.com/users/lovetox/gists{/gist_id}","starred_url":"https://api.github.com/users/lovetox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovetox/subscriptions","organizations_url":"https://api.github.com/users/lovetox/orgs","repos_url":"https://api.github.com/users/lovetox/repos","events_url":"https://api.github.com/users/lovetox/events{/privacy}","received_events_url":"https://api.github.com/users/lovetox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lovetox/gajim-omemo","description":"Gajim plugin for OMEMO Multi-End Message and Object Encryption","fork":true,"url":"https://api.github.com/repos/lovetox/gajim-omemo","forks_url":"https://api.github.com/repos/lovetox/gajim-omemo/forks","keys_url":"https://api.github.com/repos/lovetox/gajim-omemo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lovetox/gajim-omemo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lovetox/gajim-omemo/teams","hooks_url":"https://api.github.com/repos/lovetox/gajim-omemo/hooks","issue_events_url":"https://api.github.com/repos/lovetox/gajim-omemo/issues/events{/number}","events_url":"https://api.github.com/repos/lovetox/gajim-omemo/events","assignees_url":"https://api.github.com/repos/lovetox/gajim-omemo/assignees{/user}","branches_url":"https://api.github.com/repos/lovetox/gajim-omemo/branches{/branch}","tags_url":"https://api.github.com/repos/lovetox/gajim-omemo/tags","blobs_url":"https://api.github.com/repos/lovetox/gajim-omemo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lovetox/gajim-omemo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lovetox/gajim-omemo/git/refs{/sha}","trees_url":"https://api.github.com/repos/lovetox/gajim-omemo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lovetox/gajim-omemo/statuses/{sha}","languages_url":"https://api.github.com/repos/lovetox/gajim-omemo/languages","stargazers_url":"https://api.github.com/repos/lovetox/gajim-omemo/stargazers","contributors_url":"https://api.github.com/repos/lovetox/gajim-omemo/contributors","subscribers_url":"https://api.github.com/repos/lovetox/gajim-omemo/subscribers","subscription_url":"https://api.github.com/repos/lovetox/gajim-omemo/subscription","commits_url":"https://api.github.com/repos/lovetox/gajim-omemo/commits{/sha}","git_commits_url":"https://api.github.com/repos/lovetox/gajim-omemo/git/commits{/sha}","comments_url":"https://api.github.com/repos/lovetox/gajim-omemo/comments{/number}","issue_comment_url":"https://api.github.com/repos/lovetox/gajim-omemo/issues/comments{/number}","contents_url":"https://api.github.com/repos/lovetox/gajim-omemo/contents/{+path}","compare_url":"https://api.github.com/repos/lovetox/gajim-omemo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lovetox/gajim-omemo/merges","archive_url":"https://api.github.com/repos/lovetox/gajim-omemo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lovetox/gajim-omemo/downloads","issues_url":"https://api.github.com/repos/lovetox/gajim-omemo/issues{/number}","pulls_url":"https://api.github.com/repos/lovetox/gajim-omemo/pulls{/number}","milestones_url":"https://api.github.com/repos/lovetox/gajim-omemo/milestones{/number}","notifications_url":"https://api.github.com/repos/lovetox/gajim-omemo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lovetox/gajim-omemo/labels{/name}","releases_url":"https://api.github.com/repos/lovetox/gajim-omemo/releases{/id}","deployments_url":"https://api.github.com/repos/lovetox/gajim-omemo/deployments","created_at":"2016-05-27T18:43:53Z","updated_at":"2016-05-27T18:43:53Z","pushed_at":"2016-06-06T01:11:56Z","git_url":"git://github.com/lovetox/gajim-omemo.git","ssh_url":"git@github.com:lovetox/gajim-omemo.git","clone_url":"https://github.com/lovetox/gajim-omemo.git","svn_url":"https://github.com/lovetox/gajim-omemo","homepage":null,"size":213,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"omemo:master","ref":"master","sha":"d540eefd9daca9301914d56409d852b20b41fe00","user":{"login":"omemo","id":16650442,"avatar_url":"https://avatars.githubusercontent.com/u/16650442?v=3","gravatar_id":"","url":"https://api.github.com/users/omemo","html_url":"https://github.com/omemo","followers_url":"https://api.github.com/users/omemo/followers","following_url":"https://api.github.com/users/omemo/following{/other_user}","gists_url":"https://api.github.com/users/omemo/gists{/gist_id}","starred_url":"https://api.github.com/users/omemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omemo/subscriptions","organizations_url":"https://api.github.com/users/omemo/orgs","repos_url":"https://api.github.com/users/omemo/repos","events_url":"https://api.github.com/users/omemo/events{/privacy}","received_events_url":"https://api.github.com/users/omemo/received_events","type":"Organization","site_admin":false},"repo":{"id":47921884,"name":"gajim-omemo","full_name":"omemo/gajim-omemo","owner":{"login":"omemo","id":16650442,"avatar_url":"https://avatars.githubusercontent.com/u/16650442?v=3","gravatar_id":"","url":"https://api.github.com/users/omemo","html_url":"https://github.com/omemo","followers_url":"https://api.github.com/users/omemo/followers","following_url":"https://api.github.com/users/omemo/following{/other_user}","gists_url":"https://api.github.com/users/omemo/gists{/gist_id}","starred_url":"https://api.github.com/users/omemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omemo/subscriptions","organizations_url":"https://api.github.com/users/omemo/orgs","repos_url":"https://api.github.com/users/omemo/repos","events_url":"https://api.github.com/users/omemo/events{/privacy}","received_events_url":"https://api.github.com/users/omemo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omemo/gajim-omemo","description":"Gajim plugin for OMEMO Multi-End Message and Object Encryption","fork":false,"url":"https://api.github.com/repos/omemo/gajim-omemo","forks_url":"https://api.github.com/repos/omemo/gajim-omemo/forks","keys_url":"https://api.github.com/repos/omemo/gajim-omemo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omemo/gajim-omemo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omemo/gajim-omemo/teams","hooks_url":"https://api.github.com/repos/omemo/gajim-omemo/hooks","issue_events_url":"https://api.github.com/repos/omemo/gajim-omemo/issues/events{/number}","events_url":"https://api.github.com/repos/omemo/gajim-omemo/events","assignees_url":"https://api.github.com/repos/omemo/gajim-omemo/assignees{/user}","branches_url":"https://api.github.com/repos/omemo/gajim-omemo/branches{/branch}","tags_url":"https://api.github.com/repos/omemo/gajim-omemo/tags","blobs_url":"https://api.github.com/repos/omemo/gajim-omemo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omemo/gajim-omemo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omemo/gajim-omemo/git/refs{/sha}","trees_url":"https://api.github.com/repos/omemo/gajim-omemo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omemo/gajim-omemo/statuses/{sha}","languages_url":"https://api.github.com/repos/omemo/gajim-omemo/languages","stargazers_url":"https://api.github.com/repos/omemo/gajim-omemo/stargazers","contributors_url":"https://api.github.com/repos/omemo/gajim-omemo/contributors","subscribers_url":"https://api.github.com/repos/omemo/gajim-omemo/subscribers","subscription_url":"https://api.github.com/repos/omemo/gajim-omemo/subscription","commits_url":"https://api.github.com/repos/omemo/gajim-omemo/commits{/sha}","git_commits_url":"https://api.github.com/repos/omemo/gajim-omemo/git/commits{/sha}","comments_url":"https://api.github.com/repos/omemo/gajim-omemo/comments{/number}","issue_comment_url":"https://api.github.com/repos/omemo/gajim-omemo/issues/comments{/number}","contents_url":"https://api.github.com/repos/omemo/gajim-omemo/contents/{+path}","compare_url":"https://api.github.com/repos/omemo/gajim-omemo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omemo/gajim-omemo/merges","archive_url":"https://api.github.com/repos/omemo/gajim-omemo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omemo/gajim-omemo/downloads","issues_url":"https://api.github.com/repos/omemo/gajim-omemo/issues{/number}","pulls_url":"https://api.github.com/repos/omemo/gajim-omemo/pulls{/number}","milestones_url":"https://api.github.com/repos/omemo/gajim-omemo/milestones{/number}","notifications_url":"https://api.github.com/repos/omemo/gajim-omemo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omemo/gajim-omemo/labels{/name}","releases_url":"https://api.github.com/repos/omemo/gajim-omemo/releases{/id}","deployments_url":"https://api.github.com/repos/omemo/gajim-omemo/deployments","created_at":"2015-12-13T14:14:53Z","updated_at":"2016-06-05T10:45:04Z","pushed_at":"2016-06-06T01:11:56Z","git_url":"git://github.com/omemo/gajim-omemo.git","ssh_url":"git@github.com:omemo/gajim-omemo.git","clone_url":"https://github.com/omemo/gajim-omemo.git","svn_url":"https://github.com/omemo/gajim-omemo","homepage":null,"size":186,"stargazers_count":44,"watchers_count":44,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":18,"forks":8,"open_issues":18,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omemo/gajim-omemo/pulls/61"},"html":{"href":"https://github.com/omemo/gajim-omemo/pull/61"},"issue":{"href":"https://api.github.com/repos/omemo/gajim-omemo/issues/61"},"comments":{"href":"https://api.github.com/repos/omemo/gajim-omemo/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/omemo/gajim-omemo/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/omemo/gajim-omemo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omemo/gajim-omemo/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/omemo/gajim-omemo/statuses/767d8da646467e701dc07611ba5462761b0ce0b8"}}}}
{"actor":{"display_login":"kalkin"}}