{"action":"created","comment":{"url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/comments/51563533","id":51563533,"diff_hunk":"@@ -0,0 +1,47 @@\n+package de.qabel.desktop.repository.persistence;\n+\n+import de.qabel.core.config.Contact;\n+import de.qabel.core.config.Persistence;\n+import de.qabel.core.drop.DropMessage;\n+import de.qabel.desktop.repository.DropMessageRepository;\n+import de.qabel.desktop.repository.exception.PersistenceException;\n+import de.qabel.desktop.ui.actionlog.PersistenceDropMessage;\n+\n+import java.util.LinkedList;\n+import java.util.List;\n+import java.util.Observer;\n+\n+\n+public class PersistenceDropMessageRepository extends AbstractCachedPersistenceRepository<Contact> implements DropMessageRepository{\n+\n+\tpublic PersistenceDropMessageRepository(Persistence<String> persistence) {\n+\t\tsuper(persistence);\n+\t}\n+\n+\n+\t@Override\n+\tpublic void addMessage(DropMessage dropMessage, Contact contact, boolean send) throws PersistenceException {\n+\t\tPersistenceDropMessage persistenceDropMessage = new PersistenceDropMessage(dropMessage, contact, send);\n+\t\tpersistence.updateOrPersistEntity(persistenceDropMessage);\n+\t\tsetChanged();\n+\t\tnotifyObservers();\n+\t}\n+\n+\t@Override\n+\tpublic List<PersistenceDropMessage> loadConversation(Contact contact) throws PersistenceException {\n+\t\tList<PersistenceDropMessage> result = new LinkedList<>();\n+\t\tList<PersistenceDropMessage> messages = persistence.getEntities(PersistenceDropMessage.class);\n+\t\tfor (PersistenceDropMessage d : messages) {\n+\t\t\t//if (d.getContact().getEcPublicKey() == contact.getEcPublicKey()) {","path":"src/main/java/de/qabel/desktop/repository/persistence/PersistenceDropMessageRepository.java","position":35,"original_position":35,"commit_id":"5cb9948d278a567bd7b0b8ba827cbfcdfb106da9","original_commit_id":"5cb9948d278a567bd7b0b8ba827cbfcdfb106da9","user":{"login":"julianseeger","id":3258762,"avatar_url":"https://avatars.githubusercontent.com/u/3258762?v=3","gravatar_id":"","url":"https://api.github.com/users/julianseeger","html_url":"https://github.com/julianseeger","followers_url":"https://api.github.com/users/julianseeger/followers","following_url":"https://api.github.com/users/julianseeger/following{/other_user}","gists_url":"https://api.github.com/users/julianseeger/gists{/gist_id}","starred_url":"https://api.github.com/users/julianseeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianseeger/subscriptions","organizations_url":"https://api.github.com/users/julianseeger/orgs","repos_url":"https://api.github.com/users/julianseeger/repos","events_url":"https://api.github.com/users/julianseeger/events{/privacy}","received_events_url":"https://api.github.com/users/julianseeger/received_events","type":"User","site_admin":false},"body":"?","created_at":"2016-02-02T12:50:40Z","updated_at":"2016-02-02T12:50:40Z","html_url":"https://github.com/Qabel/qabel-desktop/pull/110#discussion_r51563533","pull_request_url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/comments/51563533"},"html":{"href":"https://github.com/Qabel/qabel-desktop/pull/110#discussion_r51563533"},"pull_request":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/110","id":57495164,"html_url":"https://github.com/Qabel/qabel-desktop/pull/110","diff_url":"https://github.com/Qabel/qabel-desktop/pull/110.diff","patch_url":"https://github.com/Qabel/qabel-desktop/pull/110.patch","issue_url":"https://api.github.com/repos/Qabel/qabel-desktop/issues/110","number":110,"state":"open","locked":false,"title":"Log","user":{"login":"jmt85","id":4853105,"avatar_url":"https://avatars.githubusercontent.com/u/4853105?v=3","gravatar_id":"","url":"https://api.github.com/users/jmt85","html_url":"https://github.com/jmt85","followers_url":"https://api.github.com/users/jmt85/followers","following_url":"https://api.github.com/users/jmt85/following{/other_user}","gists_url":"https://api.github.com/users/jmt85/gists{/gist_id}","starred_url":"https://api.github.com/users/jmt85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmt85/subscriptions","organizations_url":"https://api.github.com/users/jmt85/orgs","repos_url":"https://api.github.com/users/jmt85/repos","events_url":"https://api.github.com/users/jmt85/events{/privacy}","received_events_url":"https://api.github.com/users/jmt85/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-28T12:27:20Z","updated_at":"2016-02-02T12:50:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79018c09e392cd1bf4285cc0f63338e6213676ae","assignee":{"login":"julianseeger","id":3258762,"avatar_url":"https://avatars.githubusercontent.com/u/3258762?v=3","gravatar_id":"","url":"https://api.github.com/users/julianseeger","html_url":"https://github.com/julianseeger","followers_url":"https://api.github.com/users/julianseeger/followers","following_url":"https://api.github.com/users/julianseeger/following{/other_user}","gists_url":"https://api.github.com/users/julianseeger/gists{/gist_id}","starred_url":"https://api.github.com/users/julianseeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianseeger/subscriptions","organizations_url":"https://api.github.com/users/julianseeger/orgs","repos_url":"https://api.github.com/users/julianseeger/repos","events_url":"https://api.github.com/users/julianseeger/events{/privacy}","received_events_url":"https://api.github.com/users/julianseeger/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Qabel/qabel-desktop/milestones/21","html_url":"https://github.com/Qabel/qabel-desktop/milestones/Beta%201","labels_url":"https://api.github.com/repos/Qabel/qabel-desktop/milestones/21/labels","id":1497458,"number":21,"title":"Beta 1","description":"","creator":{"login":"jmt85","id":4853105,"avatar_url":"https://avatars.githubusercontent.com/u/4853105?v=3","gravatar_id":"","url":"https://api.github.com/users/jmt85","html_url":"https://github.com/jmt85","followers_url":"https://api.github.com/users/jmt85/followers","following_url":"https://api.github.com/users/jmt85/following{/other_user}","gists_url":"https://api.github.com/users/jmt85/gists{/gist_id}","starred_url":"https://api.github.com/users/jmt85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmt85/subscriptions","organizations_url":"https://api.github.com/users/jmt85/orgs","repos_url":"https://api.github.com/users/jmt85/repos","events_url":"https://api.github.com/users/jmt85/events{/privacy}","received_events_url":"https://api.github.com/users/jmt85/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":29,"state":"open","created_at":"2016-01-11T14:55:23Z","updated_at":"2016-02-01T09:36:48Z","due_on":"2016-02-11T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/110/commits","review_comments_url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/110/comments","review_comment_url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Qabel/qabel-desktop/issues/110/comments","statuses_url":"https://api.github.com/repos/Qabel/qabel-desktop/statuses/5cb9948d278a567bd7b0b8ba827cbfcdfb106da9","head":{"label":"jmt85:log","ref":"log","sha":"5cb9948d278a567bd7b0b8ba827cbfcdfb106da9","user":{"login":"jmt85","id":4853105,"avatar_url":"https://avatars.githubusercontent.com/u/4853105?v=3","gravatar_id":"","url":"https://api.github.com/users/jmt85","html_url":"https://github.com/jmt85","followers_url":"https://api.github.com/users/jmt85/followers","following_url":"https://api.github.com/users/jmt85/following{/other_user}","gists_url":"https://api.github.com/users/jmt85/gists{/gist_id}","starred_url":"https://api.github.com/users/jmt85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmt85/subscriptions","organizations_url":"https://api.github.com/users/jmt85/orgs","repos_url":"https://api.github.com/users/jmt85/repos","events_url":"https://api.github.com/users/jmt85/events{/privacy}","received_events_url":"https://api.github.com/users/jmt85/received_events","type":"User","site_admin":false},"repo":{"id":48989612,"name":"qabel-desktop","full_name":"jmt85/qabel-desktop","owner":{"login":"jmt85","id":4853105,"avatar_url":"https://avatars.githubusercontent.com/u/4853105?v=3","gravatar_id":"","url":"https://api.github.com/users/jmt85","html_url":"https://github.com/jmt85","followers_url":"https://api.github.com/users/jmt85/followers","following_url":"https://api.github.com/users/jmt85/following{/other_user}","gists_url":"https://api.github.com/users/jmt85/gists{/gist_id}","starred_url":"https://api.github.com/users/jmt85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmt85/subscriptions","organizations_url":"https://api.github.com/users/jmt85/orgs","repos_url":"https://api.github.com/users/jmt85/repos","events_url":"https://api.github.com/users/jmt85/events{/privacy}","received_events_url":"https://api.github.com/users/jmt85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmt85/qabel-desktop","description":"Desktop Frontend of Qabel","fork":true,"url":"https://api.github.com/repos/jmt85/qabel-desktop","forks_url":"https://api.github.com/repos/jmt85/qabel-desktop/forks","keys_url":"https://api.github.com/repos/jmt85/qabel-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmt85/qabel-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmt85/qabel-desktop/teams","hooks_url":"https://api.github.com/repos/jmt85/qabel-desktop/hooks","issue_events_url":"https://api.github.com/repos/jmt85/qabel-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/jmt85/qabel-desktop/events","assignees_url":"https://api.github.com/repos/jmt85/qabel-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/jmt85/qabel-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/jmt85/qabel-desktop/tags","blobs_url":"https://api.github.com/repos/jmt85/qabel-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmt85/qabel-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmt85/qabel-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmt85/qabel-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmt85/qabel-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/jmt85/qabel-desktop/languages","stargazers_url":"https://api.github.com/repos/jmt85/qabel-desktop/stargazers","contributors_url":"https://api.github.com/repos/jmt85/qabel-desktop/contributors","subscribers_url":"https://api.github.com/repos/jmt85/qabel-desktop/subscribers","subscription_url":"https://api.github.com/repos/jmt85/qabel-desktop/subscription","commits_url":"https://api.github.com/repos/jmt85/qabel-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmt85/qabel-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmt85/qabel-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmt85/qabel-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmt85/qabel-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/jmt85/qabel-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmt85/qabel-desktop/merges","archive_url":"https://api.github.com/repos/jmt85/qabel-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmt85/qabel-desktop/downloads","issues_url":"https://api.github.com/repos/jmt85/qabel-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/jmt85/qabel-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/jmt85/qabel-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/jmt85/qabel-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmt85/qabel-desktop/labels{/name}","releases_url":"https://api.github.com/repos/jmt85/qabel-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/jmt85/qabel-desktop/deployments","created_at":"2016-01-04T10:15:18Z","updated_at":"2016-01-15T13:54:01Z","pushed_at":"2016-02-01T16:37:33Z","git_url":"git://github.com/jmt85/qabel-desktop.git","ssh_url":"git@github.com:jmt85/qabel-desktop.git","clone_url":"https://github.com/jmt85/qabel-desktop.git","svn_url":"https://github.com/jmt85/qabel-desktop","homepage":null,"size":1286,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"Qabel:master","ref":"master","sha":"87f24198fdb8e35d4f1a91d5852a6fecd88e5538","user":{"login":"Qabel","id":7711470,"avatar_url":"https://avatars.githubusercontent.com/u/7711470?v=3","gravatar_id":"","url":"https://api.github.com/users/Qabel","html_url":"https://github.com/Qabel","followers_url":"https://api.github.com/users/Qabel/followers","following_url":"https://api.github.com/users/Qabel/following{/other_user}","gists_url":"https://api.github.com/users/Qabel/gists{/gist_id}","starred_url":"https://api.github.com/users/Qabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qabel/subscriptions","organizations_url":"https://api.github.com/users/Qabel/orgs","repos_url":"https://api.github.com/users/Qabel/repos","events_url":"https://api.github.com/users/Qabel/events{/privacy}","received_events_url":"https://api.github.com/users/Qabel/received_events","type":"Organization","site_admin":false},"repo":{"id":25461792,"name":"qabel-desktop","full_name":"Qabel/qabel-desktop","owner":{"login":"Qabel","id":7711470,"avatar_url":"https://avatars.githubusercontent.com/u/7711470?v=3","gravatar_id":"","url":"https://api.github.com/users/Qabel","html_url":"https://github.com/Qabel","followers_url":"https://api.github.com/users/Qabel/followers","following_url":"https://api.github.com/users/Qabel/following{/other_user}","gists_url":"https://api.github.com/users/Qabel/gists{/gist_id}","starred_url":"https://api.github.com/users/Qabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qabel/subscriptions","organizations_url":"https://api.github.com/users/Qabel/orgs","repos_url":"https://api.github.com/users/Qabel/repos","events_url":"https://api.github.com/users/Qabel/events{/privacy}","received_events_url":"https://api.github.com/users/Qabel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Qabel/qabel-desktop","description":"Desktop Frontend of Qabel","fork":false,"url":"https://api.github.com/repos/Qabel/qabel-desktop","forks_url":"https://api.github.com/repos/Qabel/qabel-desktop/forks","keys_url":"https://api.github.com/repos/Qabel/qabel-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Qabel/qabel-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Qabel/qabel-desktop/teams","hooks_url":"https://api.github.com/repos/Qabel/qabel-desktop/hooks","issue_events_url":"https://api.github.com/repos/Qabel/qabel-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/Qabel/qabel-desktop/events","assignees_url":"https://api.github.com/repos/Qabel/qabel-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/Qabel/qabel-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/Qabel/qabel-desktop/tags","blobs_url":"https://api.github.com/repos/Qabel/qabel-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Qabel/qabel-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Qabel/qabel-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Qabel/qabel-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Qabel/qabel-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/Qabel/qabel-desktop/languages","stargazers_url":"https://api.github.com/repos/Qabel/qabel-desktop/stargazers","contributors_url":"https://api.github.com/repos/Qabel/qabel-desktop/contributors","subscribers_url":"https://api.github.com/repos/Qabel/qabel-desktop/subscribers","subscription_url":"https://api.github.com/repos/Qabel/qabel-desktop/subscription","commits_url":"https://api.github.com/repos/Qabel/qabel-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Qabel/qabel-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Qabel/qabel-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Qabel/qabel-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Qabel/qabel-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/Qabel/qabel-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Qabel/qabel-desktop/merges","archive_url":"https://api.github.com/repos/Qabel/qabel-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Qabel/qabel-desktop/downloads","issues_url":"https://api.github.com/repos/Qabel/qabel-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/Qabel/qabel-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/Qabel/qabel-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Qabel/qabel-desktop/labels{/name}","releases_url":"https://api.github.com/repos/Qabel/qabel-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/Qabel/qabel-desktop/deployments","created_at":"2014-10-20T10:38:47Z","updated_at":"2016-01-11T11:57:38Z","pushed_at":"2016-02-02T12:34:13Z","git_url":"git://github.com/Qabel/qabel-desktop.git","ssh_url":"git@github.com:Qabel/qabel-desktop.git","clone_url":"https://github.com/Qabel/qabel-desktop.git","svn_url":"https://github.com/Qabel/qabel-desktop","homepage":null,"size":1375,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":33,"forks":9,"open_issues":33,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/110"},"html":{"href":"https://github.com/Qabel/qabel-desktop/pull/110"},"issue":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/issues/110"},"comments":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/statuses/5cb9948d278a567bd7b0b8ba827cbfcdfb106da9"}}}}