{"action":"created","comment":{"url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/comments/171050937","pull_request_review_id":99836335,"id":171050937,"diff_hunk":"@@ -0,0 +1,252 @@\n+//\n+//  OTRMessagesViewController+NewDevice.swift\n+//  ChatSecureCore\n+//\n+//  Created by N-Pex on 26/2/18.\n+//  Copyright © 2018 Chris Ballinger. All rights reserved.\n+//\n+\n+import Foundation\n+import OTRAssets\n+\n+var OTRMessagesViewController_supplementaryViewsAssociatedObject: UInt8 = 0\n+var OTRMessagesViewController_prototypeCellsAssociatedObject: UInt8 = 0\n+\n+extension OTRMessagesViewController: OTRMessagesCollectionViewFlowLayoutSupplementaryViewProtocol {","path":"ChatSecure/Classes/View Controllers/OTRMessagesViewController+SupplementaryViews.swift","position":15,"original_position":15,"commit_id":"367897da4eaadacbf9491e8d49d3705019f74892","original_commit_id":"367897da4eaadacbf9491e8d49d3705019f74892","user":{"login":"chrisballinger","id":518687,"avatar_url":"https://avatars2.githubusercontent.com/u/518687?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisballinger","html_url":"https://github.com/chrisballinger","followers_url":"https://api.github.com/users/chrisballinger/followers","following_url":"https://api.github.com/users/chrisballinger/following{/other_user}","gists_url":"https://api.github.com/users/chrisballinger/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisballinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisballinger/subscriptions","organizations_url":"https://api.github.com/users/chrisballinger/orgs","repos_url":"https://api.github.com/users/chrisballinger/repos","events_url":"https://api.github.com/users/chrisballinger/events{/privacy}","received_events_url":"https://api.github.com/users/chrisballinger/received_events","type":"User","site_admin":false},"body":"Can you make this a standalone class conforming to OTRMessagesCollectionViewFlowLayoutSupplementaryViewProtocol and store it as a private member inside OTRMVC.m? You should be able to make it standalone if you just init it with DatabaseConnections and pass in the message at indexPath in supplementaryViewsForCellAtIndexPath. I'd prefer to avoid objc_getAssociatedObject :)\r\n","created_at":"2018-02-27T20:08:01Z","updated_at":"2018-02-27T20:13:17Z","html_url":"https://github.com/ChatSecure/ChatSecure-iOS/pull/961#discussion_r171050937","pull_request_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/961","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/comments/171050937"},"html":{"href":"https://github.com/ChatSecure/ChatSecure-iOS/pull/961#discussion_r171050937"},"pull_request":{"href":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/961"}}},"pull_request":{"url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/961","id":170044595,"html_url":"https://github.com/ChatSecure/ChatSecure-iOS/pull/961","diff_url":"https://github.com/ChatSecure/ChatSecure-iOS/pull/961.diff","patch_url":"https://github.com/ChatSecure/ChatSecure-iOS/pull/961.patch","issue_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues/961","number":961,"state":"open","locked":false,"title":"Add \"add friend\" functionality to unknown sender cell","user":{"login":"N-Pex","id":5418622,"avatar_url":"https://avatars0.githubusercontent.com/u/5418622?v=4","gravatar_id":"","url":"https://api.github.com/users/N-Pex","html_url":"https://github.com/N-Pex","followers_url":"https://api.github.com/users/N-Pex/followers","following_url":"https://api.github.com/users/N-Pex/following{/other_user}","gists_url":"https://api.github.com/users/N-Pex/gists{/gist_id}","starred_url":"https://api.github.com/users/N-Pex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N-Pex/subscriptions","organizations_url":"https://api.github.com/users/N-Pex/orgs","repos_url":"https://api.github.com/users/N-Pex/repos","events_url":"https://api.github.com/users/N-Pex/events{/privacy}","received_events_url":"https://api.github.com/users/N-Pex/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-19T20:14:19Z","updated_at":"2018-02-27T20:13:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8a66fceb9f5ddf1b980d20e6729e4a4107a6ab1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/961/commits","review_comments_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/961/comments","review_comment_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues/961/comments","statuses_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/statuses/367897da4eaadacbf9491e8d49d3705019f74892","head":{"label":"zom:something_changed","ref":"something_changed","sha":"367897da4eaadacbf9491e8d49d3705019f74892","user":{"login":"zom","id":14287777,"avatar_url":"https://avatars3.githubusercontent.com/u/14287777?v=4","gravatar_id":"","url":"https://api.github.com/users/zom","html_url":"https://github.com/zom","followers_url":"https://api.github.com/users/zom/followers","following_url":"https://api.github.com/users/zom/following{/other_user}","gists_url":"https://api.github.com/users/zom/gists{/gist_id}","starred_url":"https://api.github.com/users/zom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zom/subscriptions","organizations_url":"https://api.github.com/users/zom/orgs","repos_url":"https://api.github.com/users/zom/repos","events_url":"https://api.github.com/users/zom/events{/privacy}","received_events_url":"https://api.github.com/users/zom/received_events","type":"Organization","site_admin":false},"repo":{"id":66939417,"name":"ChatSecure-iOS","full_name":"zom/ChatSecure-iOS","owner":{"login":"zom","id":14287777,"avatar_url":"https://avatars3.githubusercontent.com/u/14287777?v=4","gravatar_id":"","url":"https://api.github.com/users/zom","html_url":"https://github.com/zom","followers_url":"https://api.github.com/users/zom/followers","following_url":"https://api.github.com/users/zom/following{/other_user}","gists_url":"https://api.github.com/users/zom/gists{/gist_id}","starred_url":"https://api.github.com/users/zom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zom/subscriptions","organizations_url":"https://api.github.com/users/zom/orgs","repos_url":"https://api.github.com/users/zom/repos","events_url":"https://api.github.com/users/zom/events{/privacy}","received_events_url":"https://api.github.com/users/zom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zom/ChatSecure-iOS","description":"ChatSecure is a free and open source encrypted chat client for iPhone and Android that supports OTR encryption over XMPP.","fork":true,"url":"https://api.github.com/repos/zom/ChatSecure-iOS","forks_url":"https://api.github.com/repos/zom/ChatSecure-iOS/forks","keys_url":"https://api.github.com/repos/zom/ChatSecure-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zom/ChatSecure-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zom/ChatSecure-iOS/teams","hooks_url":"https://api.github.com/repos/zom/ChatSecure-iOS/hooks","issue_events_url":"https://api.github.com/repos/zom/ChatSecure-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/zom/ChatSecure-iOS/events","assignees_url":"https://api.github.com/repos/zom/ChatSecure-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/zom/ChatSecure-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/zom/ChatSecure-iOS/tags","blobs_url":"https://api.github.com/repos/zom/ChatSecure-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zom/ChatSecure-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zom/ChatSecure-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/zom/ChatSecure-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zom/ChatSecure-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/zom/ChatSecure-iOS/languages","stargazers_url":"https://api.github.com/repos/zom/ChatSecure-iOS/stargazers","contributors_url":"https://api.github.com/repos/zom/ChatSecure-iOS/contributors","subscribers_url":"https://api.github.com/repos/zom/ChatSecure-iOS/subscribers","subscription_url":"https://api.github.com/repos/zom/ChatSecure-iOS/subscription","commits_url":"https://api.github.com/repos/zom/ChatSecure-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/zom/ChatSecure-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/zom/ChatSecure-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/zom/ChatSecure-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/zom/ChatSecure-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/zom/ChatSecure-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zom/ChatSecure-iOS/merges","archive_url":"https://api.github.com/repos/zom/ChatSecure-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zom/ChatSecure-iOS/downloads","issues_url":"https://api.github.com/repos/zom/ChatSecure-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/zom/ChatSecure-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/zom/ChatSecure-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/zom/ChatSecure-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zom/ChatSecure-iOS/labels{/name}","releases_url":"https://api.github.com/repos/zom/ChatSecure-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/zom/ChatSecure-iOS/deployments","created_at":"2016-08-30T12:41:34Z","updated_at":"2018-02-27T18:02:12Z","pushed_at":"2018-02-27T14:39:40Z","git_url":"git://github.com/zom/ChatSecure-iOS.git","ssh_url":"git@github.com:zom/ChatSecure-iOS.git","clone_url":"https://github.com/zom/ChatSecure-iOS.git","svn_url":"https://github.com/zom/ChatSecure-iOS","homepage":"https://chatsecure.org","size":47395,"stargazers_count":1,"watchers_count":1,"language":"Objective-C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":2,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"ChatSecure:master","ref":"master","sha":"709776016d1218f9920c3070251cb46eb13f774c","user":{"login":"ChatSecure","id":1697368,"avatar_url":"https://avatars3.githubusercontent.com/u/1697368?v=4","gravatar_id":"","url":"https://api.github.com/users/ChatSecure","html_url":"https://github.com/ChatSecure","followers_url":"https://api.github.com/users/ChatSecure/followers","following_url":"https://api.github.com/users/ChatSecure/following{/other_user}","gists_url":"https://api.github.com/users/ChatSecure/gists{/gist_id}","starred_url":"https://api.github.com/users/ChatSecure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChatSecure/subscriptions","organizations_url":"https://api.github.com/users/ChatSecure/orgs","repos_url":"https://api.github.com/users/ChatSecure/repos","events_url":"https://api.github.com/users/ChatSecure/events{/privacy}","received_events_url":"https://api.github.com/users/ChatSecure/received_events","type":"Organization","site_admin":false},"repo":{"id":2195601,"name":"ChatSecure-iOS","full_name":"ChatSecure/ChatSecure-iOS","owner":{"login":"ChatSecure","id":1697368,"avatar_url":"https://avatars3.githubusercontent.com/u/1697368?v=4","gravatar_id":"","url":"https://api.github.com/users/ChatSecure","html_url":"https://github.com/ChatSecure","followers_url":"https://api.github.com/users/ChatSecure/followers","following_url":"https://api.github.com/users/ChatSecure/following{/other_user}","gists_url":"https://api.github.com/users/ChatSecure/gists{/gist_id}","starred_url":"https://api.github.com/users/ChatSecure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChatSecure/subscriptions","organizations_url":"https://api.github.com/users/ChatSecure/orgs","repos_url":"https://api.github.com/users/ChatSecure/repos","events_url":"https://api.github.com/users/ChatSecure/events{/privacy}","received_events_url":"https://api.github.com/users/ChatSecure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ChatSecure/ChatSecure-iOS","description":"ChatSecure is a free and open source encrypted chat client for iOS that supports OTR and OMEMO encryption over XMPP.","fork":false,"url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS","forks_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/forks","keys_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/teams","hooks_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/hooks","issue_events_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/events","assignees_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/tags","blobs_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/languages","stargazers_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/stargazers","contributors_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/contributors","subscribers_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/subscribers","subscription_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/subscription","commits_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/merges","archive_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/downloads","issues_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/labels{/name}","releases_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/deployments","created_at":"2011-08-12T06:07:51Z","updated_at":"2018-02-27T18:47:02Z","pushed_at":"2018-02-27T14:39:42Z","git_url":"git://github.com/ChatSecure/ChatSecure-iOS.git","ssh_url":"git@github.com:ChatSecure/ChatSecure-iOS.git","clone_url":"https://github.com/ChatSecure/ChatSecure-iOS.git","svn_url":"https://github.com/ChatSecure/ChatSecure-iOS","homepage":"https://chatsecure.org","size":47320,"stargazers_count":2548,"watchers_count":2548,"language":"Objective-C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":925,"mirror_url":null,"archived":false,"open_issues_count":227,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":925,"open_issues":227,"watchers":2548,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/961"},"html":{"href":"https://github.com/ChatSecure/ChatSecure-iOS/pull/961"},"issue":{"href":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues/961"},"comments":{"href":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/issues/961/comments"},"review_comments":{"href":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/961/comments"},"review_comment":{"href":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/pulls/961/commits"},"statuses":{"href":"https://api.github.com/repos/ChatSecure/ChatSecure-iOS/statuses/367897da4eaadacbf9491e8d49d3705019f74892"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"chrisballinger"}}