{"action":"created","comment":{"url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/comments/43458677","id":43458677,"diff_hunk":"@@ -0,0 +1,36 @@\n+package org.thoughtcrime.securesms.components.reminder;\n+\n+import android.content.Context;\n+import android.content.Intent;\n+import android.support.annotation.NonNull;\n+import android.view.View;\n+import android.view.View.OnClickListener;\n+\n+import org.thoughtcrime.securesms.InviteActivity;\n+import org.thoughtcrime.securesms.R;\n+import org.thoughtcrime.securesms.util.TextSecurePreferences;\n+\n+public class ShareReminder extends Reminder {\n+\n+  public ShareReminder(final @NonNull Context context) {\n+    super(context.getString(R.string.reminder_header_share_title),\n+          context.getString(R.string.reminder_header_share_text));\n+\n+    setDismissListener(new OnClickListener() {\n+      @Override public void onClick(View v) {\n+        TextSecurePreferences.setPromptedShare(context, true);\n+      }\n+    });\n+\n+    setOkListener(new OnClickListener() {\n+      @Override public void onClick(View v) {\n+        TextSecurePreferences.setPromptedShare(context, true);\n+        context.startActivity(new Intent(context, InviteActivity.class));\n+      }\n+    });\n+  }\n+\n+  public static boolean isEligible(final @NonNull Context context) {\n+    return !TextSecurePreferences.hasPromptedShare(context);","path":"src/org/thoughtcrime/securesms/components/reminder/ShareReminder.java","position":34,"original_position":34,"commit_id":"d02cb2ae064db896470967018d3122cf11a13a2d","original_commit_id":"d02cb2ae064db896470967018d3122cf11a13a2d","user":{"login":"moxie0","id":512439,"avatar_url":"https://avatars.githubusercontent.com/u/512439?v=3","gravatar_id":"","url":"https://api.github.com/users/moxie0","html_url":"https://github.com/moxie0","followers_url":"https://api.github.com/users/moxie0/followers","following_url":"https://api.github.com/users/moxie0/following{/other_user}","gists_url":"https://api.github.com/users/moxie0/gists{/gist_id}","starred_url":"https://api.github.com/users/moxie0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxie0/subscriptions","organizations_url":"https://api.github.com/users/moxie0/orgs","repos_url":"https://api.github.com/users/moxie0/repos","events_url":"https://api.github.com/users/moxie0/events{/privacy}","received_events_url":"https://api.github.com/users/moxie0/received_events","type":"User","site_admin":false},"body":"You don't think this should wait a little bit after an initial install?","created_at":"2015-10-29T23:46:20Z","updated_at":"2015-10-29T23:46:20Z","html_url":"https://github.com/WhisperSystems/TextSecure/pull/4329#discussion_r43458677","pull_request_url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/4329","_links":{"self":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/comments/43458677"},"html":{"href":"https://github.com/WhisperSystems/TextSecure/pull/4329#discussion_r43458677"},"pull_request":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/4329"}}},"pull_request":{"url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/4329","id":49181933,"html_url":"https://github.com/WhisperSystems/TextSecure/pull/4329","diff_url":"https://github.com/WhisperSystems/TextSecure/pull/4329.diff","patch_url":"https://github.com/WhisperSystems/TextSecure/pull/4329.patch","issue_url":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/4329","number":4329,"state":"open","locked":false,"title":"batch invite","user":{"login":"mcginty","id":373823,"avatar_url":"https://avatars.githubusercontent.com/u/373823?v=3","gravatar_id":"","url":"https://api.github.com/users/mcginty","html_url":"https://github.com/mcginty","followers_url":"https://api.github.com/users/mcginty/followers","following_url":"https://api.github.com/users/mcginty/following{/other_user}","gists_url":"https://api.github.com/users/mcginty/gists{/gist_id}","starred_url":"https://api.github.com/users/mcginty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcginty/subscriptions","organizations_url":"https://api.github.com/users/mcginty/orgs","repos_url":"https://api.github.com/users/mcginty/repos","events_url":"https://api.github.com/users/mcginty/events{/privacy}","received_events_url":"https://api.github.com/users/mcginty/received_events","type":"User","site_admin":false},"body":"(opened against 3.2.0)","created_at":"2015-10-29T18:38:26Z","updated_at":"2015-10-29T23:46:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"724515570ec45e6f2e57ca4d5478b6c49a261cc0","assignee":{"login":"moxie0","id":512439,"avatar_url":"https://avatars.githubusercontent.com/u/512439?v=3","gravatar_id":"","url":"https://api.github.com/users/moxie0","html_url":"https://github.com/moxie0","followers_url":"https://api.github.com/users/moxie0/followers","following_url":"https://api.github.com/users/moxie0/following{/other_user}","gists_url":"https://api.github.com/users/moxie0/gists{/gist_id}","starred_url":"https://api.github.com/users/moxie0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxie0/subscriptions","organizations_url":"https://api.github.com/users/moxie0/orgs","repos_url":"https://api.github.com/users/moxie0/repos","events_url":"https://api.github.com/users/moxie0/events{/privacy}","received_events_url":"https://api.github.com/users/moxie0/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/WhisperSystems/TextSecure/milestones/60","html_url":"https://github.com/WhisperSystems/TextSecure/milestones/3.2.0","labels_url":"https://api.github.com/repos/WhisperSystems/TextSecure/milestones/60/labels","id":1356237,"number":60,"title":"3.2.0","description":"","creator":{"login":"mcginty","id":373823,"avatar_url":"https://avatars.githubusercontent.com/u/373823?v=3","gravatar_id":"","url":"https://api.github.com/users/mcginty","html_url":"https://github.com/mcginty","followers_url":"https://api.github.com/users/mcginty/followers","following_url":"https://api.github.com/users/mcginty/following{/other_user}","gists_url":"https://api.github.com/users/mcginty/gists{/gist_id}","starred_url":"https://api.github.com/users/mcginty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcginty/subscriptions","organizations_url":"https://api.github.com/users/mcginty/orgs","repos_url":"https://api.github.com/users/mcginty/repos","events_url":"https://api.github.com/users/mcginty/events{/privacy}","received_events_url":"https://api.github.com/users/mcginty/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":6,"state":"open","created_at":"2015-10-14T21:34:52Z","updated_at":"2015-10-29T21:53:11Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/4329/commits","review_comments_url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/4329/comments","review_comment_url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/4329/comments","statuses_url":"https://api.github.com/repos/WhisperSystems/TextSecure/statuses/d02cb2ae064db896470967018d3122cf11a13a2d","head":{"label":"mcginty:feature/batch-invite","ref":"feature/batch-invite","sha":"d02cb2ae064db896470967018d3122cf11a13a2d","user":{"login":"mcginty","id":373823,"avatar_url":"https://avatars.githubusercontent.com/u/373823?v=3","gravatar_id":"","url":"https://api.github.com/users/mcginty","html_url":"https://github.com/mcginty","followers_url":"https://api.github.com/users/mcginty/followers","following_url":"https://api.github.com/users/mcginty/following{/other_user}","gists_url":"https://api.github.com/users/mcginty/gists{/gist_id}","starred_url":"https://api.github.com/users/mcginty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcginty/subscriptions","organizations_url":"https://api.github.com/users/mcginty/orgs","repos_url":"https://api.github.com/users/mcginty/repos","events_url":"https://api.github.com/users/mcginty/events{/privacy}","received_events_url":"https://api.github.com/users/mcginty/received_events","type":"User","site_admin":false},"repo":{"id":15718405,"name":"TextSecure","full_name":"mcginty/TextSecure","owner":{"login":"mcginty","id":373823,"avatar_url":"https://avatars.githubusercontent.com/u/373823?v=3","gravatar_id":"","url":"https://api.github.com/users/mcginty","html_url":"https://github.com/mcginty","followers_url":"https://api.github.com/users/mcginty/followers","following_url":"https://api.github.com/users/mcginty/following{/other_user}","gists_url":"https://api.github.com/users/mcginty/gists{/gist_id}","starred_url":"https://api.github.com/users/mcginty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcginty/subscriptions","organizations_url":"https://api.github.com/users/mcginty/orgs","repos_url":"https://api.github.com/users/mcginty/repos","events_url":"https://api.github.com/users/mcginty/events{/privacy}","received_events_url":"https://api.github.com/users/mcginty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcginty/TextSecure","description":"A secure text messaging application for Android.","fork":true,"url":"https://api.github.com/repos/mcginty/TextSecure","forks_url":"https://api.github.com/repos/mcginty/TextSecure/forks","keys_url":"https://api.github.com/repos/mcginty/TextSecure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcginty/TextSecure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcginty/TextSecure/teams","hooks_url":"https://api.github.com/repos/mcginty/TextSecure/hooks","issue_events_url":"https://api.github.com/repos/mcginty/TextSecure/issues/events{/number}","events_url":"https://api.github.com/repos/mcginty/TextSecure/events","assignees_url":"https://api.github.com/repos/mcginty/TextSecure/assignees{/user}","branches_url":"https://api.github.com/repos/mcginty/TextSecure/branches{/branch}","tags_url":"https://api.github.com/repos/mcginty/TextSecure/tags","blobs_url":"https://api.github.com/repos/mcginty/TextSecure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcginty/TextSecure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcginty/TextSecure/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcginty/TextSecure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcginty/TextSecure/statuses/{sha}","languages_url":"https://api.github.com/repos/mcginty/TextSecure/languages","stargazers_url":"https://api.github.com/repos/mcginty/TextSecure/stargazers","contributors_url":"https://api.github.com/repos/mcginty/TextSecure/contributors","subscribers_url":"https://api.github.com/repos/mcginty/TextSecure/subscribers","subscription_url":"https://api.github.com/repos/mcginty/TextSecure/subscription","commits_url":"https://api.github.com/repos/mcginty/TextSecure/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcginty/TextSecure/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcginty/TextSecure/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcginty/TextSecure/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcginty/TextSecure/contents/{+path}","compare_url":"https://api.github.com/repos/mcginty/TextSecure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcginty/TextSecure/merges","archive_url":"https://api.github.com/repos/mcginty/TextSecure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcginty/TextSecure/downloads","issues_url":"https://api.github.com/repos/mcginty/TextSecure/issues{/number}","pulls_url":"https://api.github.com/repos/mcginty/TextSecure/pulls{/number}","milestones_url":"https://api.github.com/repos/mcginty/TextSecure/milestones{/number}","notifications_url":"https://api.github.com/repos/mcginty/TextSecure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcginty/TextSecure/labels{/name}","releases_url":"https://api.github.com/repos/mcginty/TextSecure/releases{/id}","created_at":"2014-01-07T22:20:58Z","updated_at":"2015-06-09T11:51:41Z","pushed_at":"2015-10-29T18:37:33Z","git_url":"git://github.com/mcginty/TextSecure.git","ssh_url":"git@github.com:mcginty/TextSecure.git","clone_url":"https://github.com/mcginty/TextSecure.git","svn_url":"https://github.com/mcginty/TextSecure","homepage":"","size":80043,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"WhisperSystems:3.2.0","ref":"3.2.0","sha":"a402e60dfb2aedb08148554b63d8369fa8169745","user":{"login":"WhisperSystems","id":702459,"avatar_url":"https://avatars.githubusercontent.com/u/702459?v=3","gravatar_id":"","url":"https://api.github.com/users/WhisperSystems","html_url":"https://github.com/WhisperSystems","followers_url":"https://api.github.com/users/WhisperSystems/followers","following_url":"https://api.github.com/users/WhisperSystems/following{/other_user}","gists_url":"https://api.github.com/users/WhisperSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/WhisperSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WhisperSystems/subscriptions","organizations_url":"https://api.github.com/users/WhisperSystems/orgs","repos_url":"https://api.github.com/users/WhisperSystems/repos","events_url":"https://api.github.com/users/WhisperSystems/events{/privacy}","received_events_url":"https://api.github.com/users/WhisperSystems/received_events","type":"Organization","site_admin":false},"repo":{"id":2990192,"name":"TextSecure","full_name":"WhisperSystems/TextSecure","owner":{"login":"WhisperSystems","id":702459,"avatar_url":"https://avatars.githubusercontent.com/u/702459?v=3","gravatar_id":"","url":"https://api.github.com/users/WhisperSystems","html_url":"https://github.com/WhisperSystems","followers_url":"https://api.github.com/users/WhisperSystems/followers","following_url":"https://api.github.com/users/WhisperSystems/following{/other_user}","gists_url":"https://api.github.com/users/WhisperSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/WhisperSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WhisperSystems/subscriptions","organizations_url":"https://api.github.com/users/WhisperSystems/orgs","repos_url":"https://api.github.com/users/WhisperSystems/repos","events_url":"https://api.github.com/users/WhisperSystems/events{/privacy}","received_events_url":"https://api.github.com/users/WhisperSystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WhisperSystems/TextSecure","description":"A private messenger for Android.","fork":false,"url":"https://api.github.com/repos/WhisperSystems/TextSecure","forks_url":"https://api.github.com/repos/WhisperSystems/TextSecure/forks","keys_url":"https://api.github.com/repos/WhisperSystems/TextSecure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WhisperSystems/TextSecure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WhisperSystems/TextSecure/teams","hooks_url":"https://api.github.com/repos/WhisperSystems/TextSecure/hooks","issue_events_url":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/events{/number}","events_url":"https://api.github.com/repos/WhisperSystems/TextSecure/events","assignees_url":"https://api.github.com/repos/WhisperSystems/TextSecure/assignees{/user}","branches_url":"https://api.github.com/repos/WhisperSystems/TextSecure/branches{/branch}","tags_url":"https://api.github.com/repos/WhisperSystems/TextSecure/tags","blobs_url":"https://api.github.com/repos/WhisperSystems/TextSecure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WhisperSystems/TextSecure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WhisperSystems/TextSecure/git/refs{/sha}","trees_url":"https://api.github.com/repos/WhisperSystems/TextSecure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WhisperSystems/TextSecure/statuses/{sha}","languages_url":"https://api.github.com/repos/WhisperSystems/TextSecure/languages","stargazers_url":"https://api.github.com/repos/WhisperSystems/TextSecure/stargazers","contributors_url":"https://api.github.com/repos/WhisperSystems/TextSecure/contributors","subscribers_url":"https://api.github.com/repos/WhisperSystems/TextSecure/subscribers","subscription_url":"https://api.github.com/repos/WhisperSystems/TextSecure/subscription","commits_url":"https://api.github.com/repos/WhisperSystems/TextSecure/commits{/sha}","git_commits_url":"https://api.github.com/repos/WhisperSystems/TextSecure/git/commits{/sha}","comments_url":"https://api.github.com/repos/WhisperSystems/TextSecure/comments{/number}","issue_comment_url":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/comments{/number}","contents_url":"https://api.github.com/repos/WhisperSystems/TextSecure/contents/{+path}","compare_url":"https://api.github.com/repos/WhisperSystems/TextSecure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WhisperSystems/TextSecure/merges","archive_url":"https://api.github.com/repos/WhisperSystems/TextSecure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WhisperSystems/TextSecure/downloads","issues_url":"https://api.github.com/repos/WhisperSystems/TextSecure/issues{/number}","pulls_url":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls{/number}","milestones_url":"https://api.github.com/repos/WhisperSystems/TextSecure/milestones{/number}","notifications_url":"https://api.github.com/repos/WhisperSystems/TextSecure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WhisperSystems/TextSecure/labels{/name}","releases_url":"https://api.github.com/repos/WhisperSystems/TextSecure/releases{/id}","created_at":"2011-12-15T20:01:12Z","updated_at":"2015-10-29T19:03:39Z","pushed_at":"2015-10-29T22:57:42Z","git_url":"git://github.com/WhisperSystems/TextSecure.git","ssh_url":"git@github.com:WhisperSystems/TextSecure.git","clone_url":"https://github.com/WhisperSystems/TextSecure.git","svn_url":"https://github.com/WhisperSystems/TextSecure","homepage":"https://whispersystems.org","size":116382,"stargazers_count":4583,"watchers_count":4583,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1363,"mirror_url":null,"open_issues_count":571,"forks":1363,"open_issues":571,"watchers":4583,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/4329"},"html":{"href":"https://github.com/WhisperSystems/TextSecure/pull/4329"},"issue":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/4329"},"comments":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/issues/4329/comments"},"review_comments":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/4329/comments"},"review_comment":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/pulls/4329/commits"},"statuses":{"href":"https://api.github.com/repos/WhisperSystems/TextSecure/statuses/d02cb2ae064db896470967018d3122cf11a13a2d"}}}}