{"action":"created","comment":{"url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/comments/207491526","pull_request_review_id":143114093,"id":207491526,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzQ5MTUyNg==","diff_hunk":"@@ -139,47 +143,104 @@ public void initViews(LayoutInflater inflater){\n                 }));\n     }\n \n+    protected void setViewVisibility(View view, int visibility) {\n+        if (view != null) view.setVisibility(visibility);\n+    }\n+\n+    protected void setViewText(TextView textView, String text) {\n+        if (textView != null) textView.setText(text);\n+    }\n+\n     protected void setRowVisible (int textViewID, int imageViewID, boolean visible) {\n-        mainView.findViewById(textViewID).setVisibility(visible ? View.VISIBLE : View.INVISIBLE);\n-        mainView.findViewById(imageViewID).setVisibility(visible ? View.VISIBLE : View.INVISIBLE);\n+        setViewVisibility(mainView.findViewById(textViewID), visible ? View.VISIBLE : View.INVISIBLE);\n+        setViewVisibility(mainView.findViewById(imageViewID), visible ? View.VISIBLE : View.INVISIBLE);\n     }\n \n     protected void updateBlockedButton (boolean blocked) {\n-        if (blocked) {\n-            blockButton.setText(getString(R.string.unblock));\n-        }\n-        else {\n-            blockButton.setText(getString(R.string.block));\n-        }\n+        if (blocked) setViewText(blockButton, getString(R.string.unblock));\n+        else setViewText(blockButton, getString(R.string.block));\n     }\n \n     @Override\n-    public void onResume()\n-    {\n+    public void onResume() {\n         super.onResume();\n //        updateInterface();\n     }\n \n+    protected boolean isCurrentUser(User user) {\n+        return NM.currentUser().equals(user);\n+    }","path":"chat-sdk-ui/src/main/java/co/chatsdk/ui/profile/ProfileFragment.java","position":60,"original_position":60,"commit_id":"870559b57717987e031052a9c9eb9d8615416f48","original_commit_id":"870559b57717987e031052a9c9eb9d8615416f48","user":{"login":"pepebecker","id":6045310,"node_id":"MDQ6VXNlcjYwNDUzMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6045310?v=4","gravatar_id":"","url":"https://api.github.com/users/pepebecker","html_url":"https://github.com/pepebecker","followers_url":"https://api.github.com/users/pepebecker/followers","following_url":"https://api.github.com/users/pepebecker/following{/other_user}","gists_url":"https://api.github.com/users/pepebecker/gists{/gist_id}","starred_url":"https://api.github.com/users/pepebecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepebecker/subscriptions","organizations_url":"https://api.github.com/users/pepebecker/orgs","repos_url":"https://api.github.com/users/pepebecker/repos","events_url":"https://api.github.com/users/pepebecker/events{/privacy}","received_events_url":"https://api.github.com/users/pepebecker/received_events","type":"User","site_admin":false},"body":"Ok, I guess at that point of time I didn't know about the user.isMe() function and I saw this code `NM.currentUser().equals(user)` everywhere so I replaced it which a new function.\r\nI will change everything to `user.isMe()`","created_at":"2018-08-03T09:31:04Z","updated_at":"2018-08-03T09:31:04Z","html_url":"https://github.com/chat-sdk/chat-sdk-android/pull/285#discussion_r207491526","pull_request_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/285","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/comments/207491526"},"html":{"href":"https://github.com/chat-sdk/chat-sdk-android/pull/285#discussion_r207491526"},"pull_request":{"href":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/285"}},"in_reply_to_id":207473677},"pull_request":{"url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/285","id":191212497,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxMjEyNDk3","html_url":"https://github.com/chat-sdk/chat-sdk-android/pull/285","diff_url":"https://github.com/chat-sdk/chat-sdk-android/pull/285.diff","patch_url":"https://github.com/chat-sdk/chat-sdk-android/pull/285.patch","issue_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/issues/285","number":285,"state":"open","locked":false,"title":"Add changes from Alexander List & C@R project","user":{"login":"pepebecker","id":6045310,"node_id":"MDQ6VXNlcjYwNDUzMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6045310?v=4","gravatar_id":"","url":"https://api.github.com/users/pepebecker","html_url":"https://github.com/pepebecker","followers_url":"https://api.github.com/users/pepebecker/followers","following_url":"https://api.github.com/users/pepebecker/following{/other_user}","gists_url":"https://api.github.com/users/pepebecker/gists{/gist_id}","starred_url":"https://api.github.com/users/pepebecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepebecker/subscriptions","organizations_url":"https://api.github.com/users/pepebecker/orgs","repos_url":"https://api.github.com/users/pepebecker/repos","events_url":"https://api.github.com/users/pepebecker/events{/privacy}","received_events_url":"https://api.github.com/users/pepebecker/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-29T17:06:58Z","updated_at":"2018-08-03T09:31:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"adbdaffc3d7f5af812de0a1e8b6e4c2377652403","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/285/commits","review_comments_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/285/comments","review_comment_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/issues/285/comments","statuses_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/statuses/870559b57717987e031052a9c9eb9d8615416f48","head":{"label":"pepebecker:master","ref":"master","sha":"870559b57717987e031052a9c9eb9d8615416f48","user":{"login":"pepebecker","id":6045310,"node_id":"MDQ6VXNlcjYwNDUzMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6045310?v=4","gravatar_id":"","url":"https://api.github.com/users/pepebecker","html_url":"https://github.com/pepebecker","followers_url":"https://api.github.com/users/pepebecker/followers","following_url":"https://api.github.com/users/pepebecker/following{/other_user}","gists_url":"https://api.github.com/users/pepebecker/gists{/gist_id}","starred_url":"https://api.github.com/users/pepebecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepebecker/subscriptions","organizations_url":"https://api.github.com/users/pepebecker/orgs","repos_url":"https://api.github.com/users/pepebecker/repos","events_url":"https://api.github.com/users/pepebecker/events{/privacy}","received_events_url":"https://api.github.com/users/pepebecker/received_events","type":"User","site_admin":false},"repo":{"id":129428840,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk0Mjg4NDA=","name":"chat-sdk-android","full_name":"pepebecker/chat-sdk-android","owner":{"login":"pepebecker","id":6045310,"node_id":"MDQ6VXNlcjYwNDUzMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6045310?v=4","gravatar_id":"","url":"https://api.github.com/users/pepebecker","html_url":"https://github.com/pepebecker","followers_url":"https://api.github.com/users/pepebecker/followers","following_url":"https://api.github.com/users/pepebecker/following{/other_user}","gists_url":"https://api.github.com/users/pepebecker/gists{/gist_id}","starred_url":"https://api.github.com/users/pepebecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepebecker/subscriptions","organizations_url":"https://api.github.com/users/pepebecker/orgs","repos_url":"https://api.github.com/users/pepebecker/repos","events_url":"https://api.github.com/users/pepebecker/events{/privacy}","received_events_url":"https://api.github.com/users/pepebecker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pepebecker/chat-sdk-android","description":"Chat SDK Android - Open Source Mobile Messenger","fork":true,"url":"https://api.github.com/repos/pepebecker/chat-sdk-android","forks_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/forks","keys_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/teams","hooks_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/events","assignees_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/tags","blobs_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/languages","stargazers_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/subscription","commits_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/merges","archive_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/downloads","issues_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/pepebecker/chat-sdk-android/deployments","created_at":"2018-04-13T16:38:48Z","updated_at":"2018-08-02T13:43:56Z","pushed_at":"2018-08-02T13:45:12Z","git_url":"git://github.com/pepebecker/chat-sdk-android.git","ssh_url":"git@github.com:pepebecker/chat-sdk-android.git","clone_url":"https://github.com/pepebecker/chat-sdk-android.git","svn_url":"https://github.com/pepebecker/chat-sdk-android","homepage":"http://chatsdk.co","size":41397,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chat-sdk:master","ref":"master","sha":"097c983c8b718bbad24c2f72ea98228dd7089881","user":{"login":"chat-sdk","id":24526010,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NTI2MDEw","avatar_url":"https://avatars1.githubusercontent.com/u/24526010?v=4","gravatar_id":"","url":"https://api.github.com/users/chat-sdk","html_url":"https://github.com/chat-sdk","followers_url":"https://api.github.com/users/chat-sdk/followers","following_url":"https://api.github.com/users/chat-sdk/following{/other_user}","gists_url":"https://api.github.com/users/chat-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/chat-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chat-sdk/subscriptions","organizations_url":"https://api.github.com/users/chat-sdk/orgs","repos_url":"https://api.github.com/users/chat-sdk/repos","events_url":"https://api.github.com/users/chat-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/chat-sdk/received_events","type":"Organization","site_admin":false},"repo":{"id":77952416,"node_id":"MDEwOlJlcG9zaXRvcnk3Nzk1MjQxNg==","name":"chat-sdk-android","full_name":"chat-sdk/chat-sdk-android","owner":{"login":"chat-sdk","id":24526010,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NTI2MDEw","avatar_url":"https://avatars1.githubusercontent.com/u/24526010?v=4","gravatar_id":"","url":"https://api.github.com/users/chat-sdk","html_url":"https://github.com/chat-sdk","followers_url":"https://api.github.com/users/chat-sdk/followers","following_url":"https://api.github.com/users/chat-sdk/following{/other_user}","gists_url":"https://api.github.com/users/chat-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/chat-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chat-sdk/subscriptions","organizations_url":"https://api.github.com/users/chat-sdk/orgs","repos_url":"https://api.github.com/users/chat-sdk/repos","events_url":"https://api.github.com/users/chat-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/chat-sdk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chat-sdk/chat-sdk-android","description":"Chat SDK Android - Open Source Mobile Messenger","fork":false,"url":"https://api.github.com/repos/chat-sdk/chat-sdk-android","forks_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/forks","keys_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/teams","hooks_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/events","assignees_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/tags","blobs_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/languages","stargazers_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/subscription","commits_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/merges","archive_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/downloads","issues_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/chat-sdk/chat-sdk-android/deployments","created_at":"2017-01-03T20:51:35Z","updated_at":"2018-08-02T14:27:41Z","pushed_at":"2018-08-02T13:43:54Z","git_url":"git://github.com/chat-sdk/chat-sdk-android.git","ssh_url":"git@github.com:chat-sdk/chat-sdk-android.git","clone_url":"https://github.com/chat-sdk/chat-sdk-android.git","svn_url":"https://github.com/chat-sdk/chat-sdk-android","homepage":"http://chatsdk.co","size":66638,"stargazers_count":763,"watchers_count":763,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":303,"mirror_url":null,"archived":false,"open_issues_count":71,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":303,"open_issues":71,"watchers":763,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/285"},"html":{"href":"https://github.com/chat-sdk/chat-sdk-android/pull/285"},"issue":{"href":"https://api.github.com/repos/chat-sdk/chat-sdk-android/issues/285"},"comments":{"href":"https://api.github.com/repos/chat-sdk/chat-sdk-android/issues/285/comments"},"review_comments":{"href":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/285/comments"},"review_comment":{"href":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chat-sdk/chat-sdk-android/pulls/285/commits"},"statuses":{"href":"https://api.github.com/repos/chat-sdk/chat-sdk-android/statuses/870559b57717987e031052a9c9eb9d8615416f48"}},"author_association":"NONE"}}
{"actor":{"display_login":"pepebecker"}}