{"action":"created","comment":{"url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/comments/127514813","pull_request_review_id":50110948,"id":127514813,"diff_hunk":"@@ -0,0 +1,40 @@\n+package com.layer.ui.avatar;\n+\n+import android.support.annotation.NonNull;\n+import android.view.View;\n+\n+import com.layer.sdk.messaging.Identity;\n+import com.layer.ui.util.imagecache.ImageCacheWrapper;\n+\n+import java.lang.ref.WeakReference;\n+\n+\n+public class AvatarViewModelImpl implements AvatarViewModel  {\n+\n+    private IdentityNameFormatter mIdentityNameFormatter;\n+    private ImageCacheWrapper mImageCacheWrapper;\n+    private WeakReference<View> mView;\n+\n+    public AvatarViewModelImpl(ImageCacheWrapper imageCacheWrapper) {\n+        mImageCacheWrapper = imageCacheWrapper;\n+    }\n+\n+    public void setIdentityNameFormatter(IdentityNameFormatter identityNameFormatter) {\n+        mIdentityNameFormatter = identityNameFormatter;\n+    }\n+\n+    public String getInitialsForAvatarView(Identity added) {","path":"layer-atlas/src/main/java/com/layer/ui/avatar/AvatarViewModelImpl.java","position":26,"original_position":26,"commit_id":"cc0818c5d8ddfc7e6774f6f34a40207890e5976c","original_commit_id":"cc0818c5d8ddfc7e6774f6f34a40207890e5976c","user":{"login":"thecombatwombat","id":2472093,"avatar_url":"https://avatars4.githubusercontent.com/u/2472093?v=4","gravatar_id":"","url":"https://api.github.com/users/thecombatwombat","html_url":"https://github.com/thecombatwombat","followers_url":"https://api.github.com/users/thecombatwombat/followers","following_url":"https://api.github.com/users/thecombatwombat/following{/other_user}","gists_url":"https://api.github.com/users/thecombatwombat/gists{/gist_id}","starred_url":"https://api.github.com/users/thecombatwombat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecombatwombat/subscriptions","organizations_url":"https://api.github.com/users/thecombatwombat/orgs","repos_url":"https://api.github.com/users/thecombatwombat/repos","events_url":"https://api.github.com/users/thecombatwombat/events{/privacy}","received_events_url":"https://api.github.com/users/thecombatwombat/received_events","type":"User","site_admin":false},"body":"As it is in the interface....","created_at":"2017-07-14T18:01:25Z","updated_at":"2017-07-14T18:03:36Z","html_url":"https://github.com/layerhq/Atlas-Android/pull/218#discussion_r127514813","pull_request_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218","_links":{"self":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/comments/127514813"},"html":{"href":"https://github.com/layerhq/Atlas-Android/pull/218#discussion_r127514813"},"pull_request":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218"}}},"pull_request":{"url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218","id":128001980,"html_url":"https://github.com/layerhq/Atlas-Android/pull/218","diff_url":"https://github.com/layerhq/Atlas-Android/pull/218.diff","patch_url":"https://github.com/layerhq/Atlas-Android/pull/218.patch","issue_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/218","number":218,"state":"open","locked":false,"title":"Feature/and 986/update avatar to layer ui","user":{"login":"andela-wakinsanmi","id":16117695,"avatar_url":"https://avatars6.githubusercontent.com/u/16117695?v=4","gravatar_id":"","url":"https://api.github.com/users/andela-wakinsanmi","html_url":"https://github.com/andela-wakinsanmi","followers_url":"https://api.github.com/users/andela-wakinsanmi/followers","following_url":"https://api.github.com/users/andela-wakinsanmi/following{/other_user}","gists_url":"https://api.github.com/users/andela-wakinsanmi/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-wakinsanmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-wakinsanmi/subscriptions","organizations_url":"https://api.github.com/users/andela-wakinsanmi/orgs","repos_url":"https://api.github.com/users/andela-wakinsanmi/repos","events_url":"https://api.github.com/users/andela-wakinsanmi/events{/privacy}","received_events_url":"https://api.github.com/users/andela-wakinsanmi/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-28T19:33:11Z","updated_at":"2017-07-14T18:03:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2100ae571e3fefca54c018e4ae353db4695b5011","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218/commits","review_comments_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218/comments","review_comment_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/218/comments","statuses_url":"https://api.github.com/repos/layerhq/Atlas-Android/statuses/cc0818c5d8ddfc7e6774f6f34a40207890e5976c","head":{"label":"layerhq:feature/AND-986/Update-avatar-to-layer-ui","ref":"feature/AND-986/Update-avatar-to-layer-ui","sha":"cc0818c5d8ddfc7e6774f6f34a40207890e5976c","user":{"login":"layerhq","id":5497685,"avatar_url":"https://avatars6.githubusercontent.com/u/5497685?v=4","gravatar_id":"","url":"https://api.github.com/users/layerhq","html_url":"https://github.com/layerhq","followers_url":"https://api.github.com/users/layerhq/followers","following_url":"https://api.github.com/users/layerhq/following{/other_user}","gists_url":"https://api.github.com/users/layerhq/gists{/gist_id}","starred_url":"https://api.github.com/users/layerhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layerhq/subscriptions","organizations_url":"https://api.github.com/users/layerhq/orgs","repos_url":"https://api.github.com/users/layerhq/repos","events_url":"https://api.github.com/users/layerhq/events{/privacy}","received_events_url":"https://api.github.com/users/layerhq/received_events","type":"Organization","site_admin":false},"repo":{"id":36491008,"name":"Atlas-Android","full_name":"layerhq/Atlas-Android","owner":{"login":"layerhq","id":5497685,"avatar_url":"https://avatars6.githubusercontent.com/u/5497685?v=4","gravatar_id":"","url":"https://api.github.com/users/layerhq","html_url":"https://github.com/layerhq","followers_url":"https://api.github.com/users/layerhq/followers","following_url":"https://api.github.com/users/layerhq/following{/other_user}","gists_url":"https://api.github.com/users/layerhq/gists{/gist_id}","starred_url":"https://api.github.com/users/layerhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layerhq/subscriptions","organizations_url":"https://api.github.com/users/layerhq/orgs","repos_url":"https://api.github.com/users/layerhq/repos","events_url":"https://api.github.com/users/layerhq/events{/privacy}","received_events_url":"https://api.github.com/users/layerhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/layerhq/Atlas-Android","description":"Library of native Android chat and messaging UI components, built to work with Layer","fork":false,"url":"https://api.github.com/repos/layerhq/Atlas-Android","forks_url":"https://api.github.com/repos/layerhq/Atlas-Android/forks","keys_url":"https://api.github.com/repos/layerhq/Atlas-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/layerhq/Atlas-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/layerhq/Atlas-Android/teams","hooks_url":"https://api.github.com/repos/layerhq/Atlas-Android/hooks","issue_events_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/events{/number}","events_url":"https://api.github.com/repos/layerhq/Atlas-Android/events","assignees_url":"https://api.github.com/repos/layerhq/Atlas-Android/assignees{/user}","branches_url":"https://api.github.com/repos/layerhq/Atlas-Android/branches{/branch}","tags_url":"https://api.github.com/repos/layerhq/Atlas-Android/tags","blobs_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/layerhq/Atlas-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/layerhq/Atlas-Android/languages","stargazers_url":"https://api.github.com/repos/layerhq/Atlas-Android/stargazers","contributors_url":"https://api.github.com/repos/layerhq/Atlas-Android/contributors","subscribers_url":"https://api.github.com/repos/layerhq/Atlas-Android/subscribers","subscription_url":"https://api.github.com/repos/layerhq/Atlas-Android/subscription","commits_url":"https://api.github.com/repos/layerhq/Atlas-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/layerhq/Atlas-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/layerhq/Atlas-Android/contents/{+path}","compare_url":"https://api.github.com/repos/layerhq/Atlas-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/layerhq/Atlas-Android/merges","archive_url":"https://api.github.com/repos/layerhq/Atlas-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/layerhq/Atlas-Android/downloads","issues_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues{/number}","pulls_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/layerhq/Atlas-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/layerhq/Atlas-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/layerhq/Atlas-Android/labels{/name}","releases_url":"https://api.github.com/repos/layerhq/Atlas-Android/releases{/id}","deployments_url":"https://api.github.com/repos/layerhq/Atlas-Android/deployments","created_at":"2015-05-29T08:21:24Z","updated_at":"2017-07-12T20:56:49Z","pushed_at":"2017-07-14T16:20:42Z","git_url":"git://github.com/layerhq/Atlas-Android.git","ssh_url":"git@github.com:layerhq/Atlas-Android.git","clone_url":"https://github.com/layerhq/Atlas-Android.git","svn_url":"https://github.com/layerhq/Atlas-Android","homepage":"https://layer.com/","size":24997,"stargazers_count":296,"watchers_count":296,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":157,"mirror_url":null,"open_issues_count":11,"forks":157,"open_issues":11,"watchers":296,"default_branch":"master"}},"base":{"label":"layerhq:layer_ui","ref":"layer_ui","sha":"d7aa206d6152a4919ff594cd4f2e0d4e50b2908e","user":{"login":"layerhq","id":5497685,"avatar_url":"https://avatars6.githubusercontent.com/u/5497685?v=4","gravatar_id":"","url":"https://api.github.com/users/layerhq","html_url":"https://github.com/layerhq","followers_url":"https://api.github.com/users/layerhq/followers","following_url":"https://api.github.com/users/layerhq/following{/other_user}","gists_url":"https://api.github.com/users/layerhq/gists{/gist_id}","starred_url":"https://api.github.com/users/layerhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layerhq/subscriptions","organizations_url":"https://api.github.com/users/layerhq/orgs","repos_url":"https://api.github.com/users/layerhq/repos","events_url":"https://api.github.com/users/layerhq/events{/privacy}","received_events_url":"https://api.github.com/users/layerhq/received_events","type":"Organization","site_admin":false},"repo":{"id":36491008,"name":"Atlas-Android","full_name":"layerhq/Atlas-Android","owner":{"login":"layerhq","id":5497685,"avatar_url":"https://avatars6.githubusercontent.com/u/5497685?v=4","gravatar_id":"","url":"https://api.github.com/users/layerhq","html_url":"https://github.com/layerhq","followers_url":"https://api.github.com/users/layerhq/followers","following_url":"https://api.github.com/users/layerhq/following{/other_user}","gists_url":"https://api.github.com/users/layerhq/gists{/gist_id}","starred_url":"https://api.github.com/users/layerhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layerhq/subscriptions","organizations_url":"https://api.github.com/users/layerhq/orgs","repos_url":"https://api.github.com/users/layerhq/repos","events_url":"https://api.github.com/users/layerhq/events{/privacy}","received_events_url":"https://api.github.com/users/layerhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/layerhq/Atlas-Android","description":"Library of native Android chat and messaging UI components, built to work with Layer","fork":false,"url":"https://api.github.com/repos/layerhq/Atlas-Android","forks_url":"https://api.github.com/repos/layerhq/Atlas-Android/forks","keys_url":"https://api.github.com/repos/layerhq/Atlas-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/layerhq/Atlas-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/layerhq/Atlas-Android/teams","hooks_url":"https://api.github.com/repos/layerhq/Atlas-Android/hooks","issue_events_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/events{/number}","events_url":"https://api.github.com/repos/layerhq/Atlas-Android/events","assignees_url":"https://api.github.com/repos/layerhq/Atlas-Android/assignees{/user}","branches_url":"https://api.github.com/repos/layerhq/Atlas-Android/branches{/branch}","tags_url":"https://api.github.com/repos/layerhq/Atlas-Android/tags","blobs_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/layerhq/Atlas-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/layerhq/Atlas-Android/languages","stargazers_url":"https://api.github.com/repos/layerhq/Atlas-Android/stargazers","contributors_url":"https://api.github.com/repos/layerhq/Atlas-Android/contributors","subscribers_url":"https://api.github.com/repos/layerhq/Atlas-Android/subscribers","subscription_url":"https://api.github.com/repos/layerhq/Atlas-Android/subscription","commits_url":"https://api.github.com/repos/layerhq/Atlas-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/layerhq/Atlas-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/layerhq/Atlas-Android/contents/{+path}","compare_url":"https://api.github.com/repos/layerhq/Atlas-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/layerhq/Atlas-Android/merges","archive_url":"https://api.github.com/repos/layerhq/Atlas-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/layerhq/Atlas-Android/downloads","issues_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues{/number}","pulls_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/layerhq/Atlas-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/layerhq/Atlas-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/layerhq/Atlas-Android/labels{/name}","releases_url":"https://api.github.com/repos/layerhq/Atlas-Android/releases{/id}","deployments_url":"https://api.github.com/repos/layerhq/Atlas-Android/deployments","created_at":"2015-05-29T08:21:24Z","updated_at":"2017-07-12T20:56:49Z","pushed_at":"2017-07-14T16:20:42Z","git_url":"git://github.com/layerhq/Atlas-Android.git","ssh_url":"git@github.com:layerhq/Atlas-Android.git","clone_url":"https://github.com/layerhq/Atlas-Android.git","svn_url":"https://github.com/layerhq/Atlas-Android","homepage":"https://layer.com/","size":24997,"stargazers_count":296,"watchers_count":296,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":157,"mirror_url":null,"open_issues_count":11,"forks":157,"open_issues":11,"watchers":296,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218"},"html":{"href":"https://github.com/layerhq/Atlas-Android/pull/218"},"issue":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/issues/218"},"comments":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/issues/218/comments"},"review_comments":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218/comments"},"review_comment":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218/commits"},"statuses":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/statuses/cc0818c5d8ddfc7e6774f6f34a40207890e5976c"}}}}
{"actor":{"display_login":"thecombatwombat"}}