{"action":"created","comment":{"url":"https://api.github.com/repos/runelite/runelite/pulls/comments/210067063","pull_request_review_id":146205398,"id":210067063,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDA2NzA2Mw==","diff_hunk":"@@ -70,6 +106,64 @@ public void updateClanChatTitle()\n \t\t}\n \t}\n \n+\tprivate boolean send(ChatboxInput chatbox)\n+\t{\n+\t\texecutor.execute(() ->\n+\t\t{\n+\t\t\tchatbox.resume();\n+\t\t});\n+\n+\t\treturn true;\n+\t}\n+\n+\tprivate boolean isClanChatClosed()\n+\t{\n+\t\tWidget widget = client.getWidget(WidgetInfo.CLAN_CHAT);\n+\n+\t\tif (widget == null)\n+\t\t{\n+\t\t\treturn true;\n+\t\t}\n+\n+\t\treturn widget.isHidden();\n+\t}\n+\n+\t@Override\n+\tpublic boolean onChatboxInput(ChatboxInput chatboxInput)\n+\t{\n+\t\tif (!config.swapChat() && (!config.mobileChat() || isClanChatClosed()))\n+\t\t{\n+\t\t\treturn send(chatboxInput);\n+\t\t}\n+\n+\t\tString msg = chatboxInput.getValue();\n+\n+\t\tif (msg.startsWith(\"/\"))\n+\t\t{\n+\t\t\tmsg = msg.substring(1);\n+\t\t\tchatboxInput.setChatType(0);\n+\t\t}\n+\t\telse\n+\t\t{\n+\t\t\tmsg = \"/\" + msg;\n+\t\t\tchatboxInput.setChatType(2);\n+\t\t}\n+\n+\t\tchatboxInput.setValue(msg);\n+\n+\t\treturn send(chatboxInput);","path":"runelite-client/src/main/java/net/runelite/client/plugins/clanchat/ClanChatPlugin.java","position":120,"original_position":120,"commit_id":"915231bdab1a3d0511b871a02ebed8eefe3182bf","original_commit_id":"915231bdab1a3d0511b871a02ebed8eefe3182bf","user":{"login":"deathbeam","id":5115805,"node_id":"MDQ6VXNlcjUxMTU4MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/5115805?v=4","gravatar_id":"","url":"https://api.github.com/users/deathbeam","html_url":"https://github.com/deathbeam","followers_url":"https://api.github.com/users/deathbeam/followers","following_url":"https://api.github.com/users/deathbeam/following{/other_user}","gists_url":"https://api.github.com/users/deathbeam/gists{/gist_id}","starred_url":"https://api.github.com/users/deathbeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deathbeam/subscriptions","organizations_url":"https://api.github.com/users/deathbeam/orgs","repos_url":"https://api.github.com/users/deathbeam/repos","events_url":"https://api.github.com/users/deathbeam/events{/privacy}","received_events_url":"https://api.github.com/users/deathbeam/received_events","type":"User","site_admin":false},"body":"Do you really need to pause here? Will this work if you will just return false?","created_at":"2018-08-14T18:59:51Z","updated_at":"2018-08-14T18:59:57Z","html_url":"https://github.com/runelite/runelite/pull/4902#discussion_r210067063","pull_request_url":"https://api.github.com/repos/runelite/runelite/pulls/4902","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/runelite/runelite/pulls/comments/210067063"},"html":{"href":"https://github.com/runelite/runelite/pull/4902#discussion_r210067063"},"pull_request":{"href":"https://api.github.com/repos/runelite/runelite/pulls/4902"}}},"pull_request":{"url":"https://api.github.com/repos/runelite/runelite/pulls/4902","id":208365617,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4MzY1NjE3","html_url":"https://github.com/runelite/runelite/pull/4902","diff_url":"https://github.com/runelite/runelite/pull/4902.diff","patch_url":"https://github.com/runelite/runelite/pull/4902.patch","issue_url":"https://api.github.com/repos/runelite/runelite/issues/4902","number":4902,"state":"open","locked":false,"title":"Add configuration for mobile-like chat mode","user":{"login":"raiyni","id":22979513,"node_id":"MDQ6VXNlcjIyOTc5NTEz","avatar_url":"https://avatars0.githubusercontent.com/u/22979513?v=4","gravatar_id":"","url":"https://api.github.com/users/raiyni","html_url":"https://github.com/raiyni","followers_url":"https://api.github.com/users/raiyni/followers","following_url":"https://api.github.com/users/raiyni/following{/other_user}","gists_url":"https://api.github.com/users/raiyni/gists{/gist_id}","starred_url":"https://api.github.com/users/raiyni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raiyni/subscriptions","organizations_url":"https://api.github.com/users/raiyni/orgs","repos_url":"https://api.github.com/users/raiyni/repos","events_url":"https://api.github.com/users/raiyni/events{/privacy}","received_events_url":"https://api.github.com/users/raiyni/received_events","type":"User","site_admin":false},"body":"Closes https://github.com/runelite/runelite/issues/4697.\r\n","created_at":"2018-08-14T18:10:34Z","updated_at":"2018-08-14T18:59:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31396d6b8a8621a70db90fc9fd3e3ac8a8910f98","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":771846940,"node_id":"MDU6TGFiZWw3NzE4NDY5NDA=","url":"https://api.github.com/repos/runelite/runelite/labels/feature-request","name":"feature-request","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/runelite/runelite/pulls/4902/commits","review_comments_url":"https://api.github.com/repos/runelite/runelite/pulls/4902/comments","review_comment_url":"https://api.github.com/repos/runelite/runelite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/runelite/runelite/issues/4902/comments","statuses_url":"https://api.github.com/repos/runelite/runelite/statuses/915231bdab1a3d0511b871a02ebed8eefe3182bf","head":{"label":"raiyni:clanchat-switch","ref":"clanchat-switch","sha":"915231bdab1a3d0511b871a02ebed8eefe3182bf","user":{"login":"raiyni","id":22979513,"node_id":"MDQ6VXNlcjIyOTc5NTEz","avatar_url":"https://avatars0.githubusercontent.com/u/22979513?v=4","gravatar_id":"","url":"https://api.github.com/users/raiyni","html_url":"https://github.com/raiyni","followers_url":"https://api.github.com/users/raiyni/followers","following_url":"https://api.github.com/users/raiyni/following{/other_user}","gists_url":"https://api.github.com/users/raiyni/gists{/gist_id}","starred_url":"https://api.github.com/users/raiyni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raiyni/subscriptions","organizations_url":"https://api.github.com/users/raiyni/orgs","repos_url":"https://api.github.com/users/raiyni/repos","events_url":"https://api.github.com/users/raiyni/events{/privacy}","received_events_url":"https://api.github.com/users/raiyni/received_events","type":"User","site_admin":false},"repo":{"id":144194508,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQxOTQ1MDg=","name":"runelite","full_name":"raiyni/runelite","owner":{"login":"raiyni","id":22979513,"node_id":"MDQ6VXNlcjIyOTc5NTEz","avatar_url":"https://avatars0.githubusercontent.com/u/22979513?v=4","gravatar_id":"","url":"https://api.github.com/users/raiyni","html_url":"https://github.com/raiyni","followers_url":"https://api.github.com/users/raiyni/followers","following_url":"https://api.github.com/users/raiyni/following{/other_user}","gists_url":"https://api.github.com/users/raiyni/gists{/gist_id}","starred_url":"https://api.github.com/users/raiyni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raiyni/subscriptions","organizations_url":"https://api.github.com/users/raiyni/orgs","repos_url":"https://api.github.com/users/raiyni/repos","events_url":"https://api.github.com/users/raiyni/events{/privacy}","received_events_url":"https://api.github.com/users/raiyni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raiyni/runelite","description":"Open source Old School RuneScape client","fork":true,"url":"https://api.github.com/repos/raiyni/runelite","forks_url":"https://api.github.com/repos/raiyni/runelite/forks","keys_url":"https://api.github.com/repos/raiyni/runelite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raiyni/runelite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raiyni/runelite/teams","hooks_url":"https://api.github.com/repos/raiyni/runelite/hooks","issue_events_url":"https://api.github.com/repos/raiyni/runelite/issues/events{/number}","events_url":"https://api.github.com/repos/raiyni/runelite/events","assignees_url":"https://api.github.com/repos/raiyni/runelite/assignees{/user}","branches_url":"https://api.github.com/repos/raiyni/runelite/branches{/branch}","tags_url":"https://api.github.com/repos/raiyni/runelite/tags","blobs_url":"https://api.github.com/repos/raiyni/runelite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raiyni/runelite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raiyni/runelite/git/refs{/sha}","trees_url":"https://api.github.com/repos/raiyni/runelite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raiyni/runelite/statuses/{sha}","languages_url":"https://api.github.com/repos/raiyni/runelite/languages","stargazers_url":"https://api.github.com/repos/raiyni/runelite/stargazers","contributors_url":"https://api.github.com/repos/raiyni/runelite/contributors","subscribers_url":"https://api.github.com/repos/raiyni/runelite/subscribers","subscription_url":"https://api.github.com/repos/raiyni/runelite/subscription","commits_url":"https://api.github.com/repos/raiyni/runelite/commits{/sha}","git_commits_url":"https://api.github.com/repos/raiyni/runelite/git/commits{/sha}","comments_url":"https://api.github.com/repos/raiyni/runelite/comments{/number}","issue_comment_url":"https://api.github.com/repos/raiyni/runelite/issues/comments{/number}","contents_url":"https://api.github.com/repos/raiyni/runelite/contents/{+path}","compare_url":"https://api.github.com/repos/raiyni/runelite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raiyni/runelite/merges","archive_url":"https://api.github.com/repos/raiyni/runelite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raiyni/runelite/downloads","issues_url":"https://api.github.com/repos/raiyni/runelite/issues{/number}","pulls_url":"https://api.github.com/repos/raiyni/runelite/pulls{/number}","milestones_url":"https://api.github.com/repos/raiyni/runelite/milestones{/number}","notifications_url":"https://api.github.com/repos/raiyni/runelite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raiyni/runelite/labels{/name}","releases_url":"https://api.github.com/repos/raiyni/runelite/releases{/id}","deployments_url":"https://api.github.com/repos/raiyni/runelite/deployments","created_at":"2018-08-09T19:23:10Z","updated_at":"2018-08-14T17:59:33Z","pushed_at":"2018-08-14T18:48:03Z","git_url":"git://github.com/raiyni/runelite.git","ssh_url":"git@github.com:raiyni/runelite.git","clone_url":"https://github.com/raiyni/runelite.git","svn_url":"https://github.com/raiyni/runelite","homepage":"https://runelite.net","size":18474,"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":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"runelite:master","ref":"master","sha":"141d599e191a48a6814f77796d6d31e735487b82","user":{"login":"runelite","id":13814776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzODE0Nzc2","avatar_url":"https://avatars1.githubusercontent.com/u/13814776?v=4","gravatar_id":"","url":"https://api.github.com/users/runelite","html_url":"https://github.com/runelite","followers_url":"https://api.github.com/users/runelite/followers","following_url":"https://api.github.com/users/runelite/following{/other_user}","gists_url":"https://api.github.com/users/runelite/gists{/gist_id}","starred_url":"https://api.github.com/users/runelite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runelite/subscriptions","organizations_url":"https://api.github.com/users/runelite/orgs","repos_url":"https://api.github.com/users/runelite/repos","events_url":"https://api.github.com/users/runelite/events{/privacy}","received_events_url":"https://api.github.com/users/runelite/received_events","type":"Organization","site_admin":false},"repo":{"id":57461213,"node_id":"MDEwOlJlcG9zaXRvcnk1NzQ2MTIxMw==","name":"runelite","full_name":"runelite/runelite","owner":{"login":"runelite","id":13814776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzODE0Nzc2","avatar_url":"https://avatars1.githubusercontent.com/u/13814776?v=4","gravatar_id":"","url":"https://api.github.com/users/runelite","html_url":"https://github.com/runelite","followers_url":"https://api.github.com/users/runelite/followers","following_url":"https://api.github.com/users/runelite/following{/other_user}","gists_url":"https://api.github.com/users/runelite/gists{/gist_id}","starred_url":"https://api.github.com/users/runelite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runelite/subscriptions","organizations_url":"https://api.github.com/users/runelite/orgs","repos_url":"https://api.github.com/users/runelite/repos","events_url":"https://api.github.com/users/runelite/events{/privacy}","received_events_url":"https://api.github.com/users/runelite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/runelite/runelite","description":"Open source Old School RuneScape client","fork":false,"url":"https://api.github.com/repos/runelite/runelite","forks_url":"https://api.github.com/repos/runelite/runelite/forks","keys_url":"https://api.github.com/repos/runelite/runelite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/runelite/runelite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/runelite/runelite/teams","hooks_url":"https://api.github.com/repos/runelite/runelite/hooks","issue_events_url":"https://api.github.com/repos/runelite/runelite/issues/events{/number}","events_url":"https://api.github.com/repos/runelite/runelite/events","assignees_url":"https://api.github.com/repos/runelite/runelite/assignees{/user}","branches_url":"https://api.github.com/repos/runelite/runelite/branches{/branch}","tags_url":"https://api.github.com/repos/runelite/runelite/tags","blobs_url":"https://api.github.com/repos/runelite/runelite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/runelite/runelite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/runelite/runelite/git/refs{/sha}","trees_url":"https://api.github.com/repos/runelite/runelite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/runelite/runelite/statuses/{sha}","languages_url":"https://api.github.com/repos/runelite/runelite/languages","stargazers_url":"https://api.github.com/repos/runelite/runelite/stargazers","contributors_url":"https://api.github.com/repos/runelite/runelite/contributors","subscribers_url":"https://api.github.com/repos/runelite/runelite/subscribers","subscription_url":"https://api.github.com/repos/runelite/runelite/subscription","commits_url":"https://api.github.com/repos/runelite/runelite/commits{/sha}","git_commits_url":"https://api.github.com/repos/runelite/runelite/git/commits{/sha}","comments_url":"https://api.github.com/repos/runelite/runelite/comments{/number}","issue_comment_url":"https://api.github.com/repos/runelite/runelite/issues/comments{/number}","contents_url":"https://api.github.com/repos/runelite/runelite/contents/{+path}","compare_url":"https://api.github.com/repos/runelite/runelite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/runelite/runelite/merges","archive_url":"https://api.github.com/repos/runelite/runelite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/runelite/runelite/downloads","issues_url":"https://api.github.com/repos/runelite/runelite/issues{/number}","pulls_url":"https://api.github.com/repos/runelite/runelite/pulls{/number}","milestones_url":"https://api.github.com/repos/runelite/runelite/milestones{/number}","notifications_url":"https://api.github.com/repos/runelite/runelite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/runelite/runelite/labels{/name}","releases_url":"https://api.github.com/repos/runelite/runelite/releases{/id}","deployments_url":"https://api.github.com/repos/runelite/runelite/deployments","created_at":"2016-04-30T20:48:02Z","updated_at":"2018-08-14T17:30:51Z","pushed_at":"2018-08-14T18:48:06Z","git_url":"git://github.com/runelite/runelite.git","ssh_url":"git@github.com:runelite/runelite.git","clone_url":"https://github.com/runelite/runelite.git","svn_url":"https://github.com/runelite/runelite","homepage":"https://runelite.net","size":18472,"stargazers_count":1163,"watchers_count":1163,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1526,"mirror_url":null,"archived":false,"open_issues_count":1104,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":1526,"open_issues":1104,"watchers":1163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/runelite/runelite/pulls/4902"},"html":{"href":"https://github.com/runelite/runelite/pull/4902"},"issue":{"href":"https://api.github.com/repos/runelite/runelite/issues/4902"},"comments":{"href":"https://api.github.com/repos/runelite/runelite/issues/4902/comments"},"review_comments":{"href":"https://api.github.com/repos/runelite/runelite/pulls/4902/comments"},"review_comment":{"href":"https://api.github.com/repos/runelite/runelite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/runelite/runelite/pulls/4902/commits"},"statuses":{"href":"https://api.github.com/repos/runelite/runelite/statuses/915231bdab1a3d0511b871a02ebed8eefe3182bf"}},"author_association":"NONE"}}
{"actor":{"display_login":"deathbeam"}}