{"action":"created","comment":{"url":"https://api.github.com/repos/meebey/smuxi/pulls/comments/23889238","id":23889238,"diff_hunk":"@@ -406,6 +407,25 @@ public void AddMessage(MessageModel msg, bool addLinebreak, bool showTimestamps)\n                     } else {\n                         buffer.Insert(ref iter, fmsgti.Text);\n                     }\n+                } else if (msgPart is ImageMessagePartModel) {\n+                    var imgpart = (ImageMessagePartModel) msgPart;\n+                    try {\n+                        var uri = new Uri(imgpart.ImageFileName);\n+                        if (uri.Scheme == \"smuxi-emoji\") {\n+                            var emojiPath = System.IO.Path.Combine(\"/tmp/emoji/assets/images\", uri.Host + \".png\");\n+                            var emojiFile = new FileInfo(emojiPath);\n+                            if (emojiFile.Exists && emojiFile.Length > 0) {\n+                                var pix = new Gdk.Pixbuf(emojiPath);\n+                                buffer.InsertPixbuf(ref iter, pix);\n+                                continue;","path":"src/Frontend-GNOME/Views/MessageTextView.cs","position":22,"original_position":22,"commit_id":"dbdbbfca485a924d0817ddc38cc76ad6018d54e3","original_commit_id":"dbdbbfca485a924d0817ddc38cc76ad6018d54e3","user":{"login":"meebey","id":318066,"avatar_url":"https://avatars.githubusercontent.com/u/318066?v=3","gravatar_id":"","url":"https://api.github.com/users/meebey","html_url":"https://github.com/meebey","followers_url":"https://api.github.com/users/meebey/followers","following_url":"https://api.github.com/users/meebey/following{/other_user}","gists_url":"https://api.github.com/users/meebey/gists{/gist_id}","starred_url":"https://api.github.com/users/meebey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meebey/subscriptions","organizations_url":"https://api.github.com/users/meebey/orgs","repos_url":"https://api.github.com/users/meebey/repos","events_url":"https://api.github.com/users/meebey/events{/privacy}","received_events_url":"https://api.github.com/users/meebey/received_events","type":"User","site_admin":false},"body":"I would prefer if the regular expected case is not the nested one.. continue in success code code should be avoided","created_at":"2015-01-31T14:40:02Z","updated_at":"2015-01-31T14:40:02Z","html_url":"https://github.com/meebey/smuxi/pull/206#discussion_r23889238","pull_request_url":"https://api.github.com/repos/meebey/smuxi/pulls/206","_links":{"self":{"href":"https://api.github.com/repos/meebey/smuxi/pulls/comments/23889238"},"html":{"href":"https://github.com/meebey/smuxi/pull/206#discussion_r23889238"},"pull_request":{"href":"https://api.github.com/repos/meebey/smuxi/pulls/206"}}},"pull_request":{"url":"https://api.github.com/repos/meebey/smuxi/pulls/206","id":28378625,"html_url":"https://github.com/meebey/smuxi/pull/206","diff_url":"https://github.com/meebey/smuxi/pull/206.diff","patch_url":"https://github.com/meebey/smuxi/pull/206.patch","issue_url":"https://api.github.com/repos/meebey/smuxi/issues/206","number":206,"state":"open","locked":false,"title":"Show an image in the frontend when given an image message part","user":{"login":"carlosmn","id":335443,"avatar_url":"https://avatars.githubusercontent.com/u/335443?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosmn","html_url":"https://github.com/carlosmn","followers_url":"https://api.github.com/users/carlosmn/followers","following_url":"https://api.github.com/users/carlosmn/following{/other_user}","gists_url":"https://api.github.com/users/carlosmn/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosmn/subscriptions","organizations_url":"https://api.github.com/users/carlosmn/orgs","repos_url":"https://api.github.com/users/carlosmn/repos","events_url":"https://api.github.com/users/carlosmn/events{/privacy}","received_events_url":"https://api.github.com/users/carlosmn/received_events","type":"User","site_admin":false},"body":"This is the base for an emoji branch I've been carrying locally for a while. This is just the bit to show the image, rather than the full implementation, as they're somewhat different concerns.\r\n\r\nRight now, this assumes that the engine knows where the images are located, though this is clearly only going to work for a local engine. We will need an image provider (or multiple) of some sort on the frontend which knows how to translate a relative path from the engine.\r\n\r\nThis still doesn't have the url-handling ones (which would be used for e.g. twitter), as that's not something I have in my fork yet. I think we should be able to use `Gdk.Pixbuf(Stream)`  or `Gtk.Pixbuf(byte[])` with the data from the server. This however raises the question of whether we want to wait for an image from the net while rendering (I hear sometimes the Internet isn't quick).","created_at":"2015-01-30T17:35:45Z","updated_at":"2015-01-31T14:40:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5c739e4eeba5fb5b91bd24e8e39e51ae4ba9861","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/meebey/smuxi/pulls/206/commits","review_comments_url":"https://api.github.com/repos/meebey/smuxi/pulls/206/comments","review_comment_url":"https://api.github.com/repos/meebey/smuxi/pulls/comments/{number}","comments_url":"https://api.github.com/repos/meebey/smuxi/issues/206/comments","statuses_url":"https://api.github.com/repos/meebey/smuxi/statuses/dbdbbfca485a924d0817ddc38cc76ad6018d54e3","head":{"label":"carlosmn:show-image","ref":"show-image","sha":"dbdbbfca485a924d0817ddc38cc76ad6018d54e3","user":{"login":"carlosmn","id":335443,"avatar_url":"https://avatars.githubusercontent.com/u/335443?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosmn","html_url":"https://github.com/carlosmn","followers_url":"https://api.github.com/users/carlosmn/followers","following_url":"https://api.github.com/users/carlosmn/following{/other_user}","gists_url":"https://api.github.com/users/carlosmn/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosmn/subscriptions","organizations_url":"https://api.github.com/users/carlosmn/orgs","repos_url":"https://api.github.com/users/carlosmn/repos","events_url":"https://api.github.com/users/carlosmn/events{/privacy}","received_events_url":"https://api.github.com/users/carlosmn/received_events","type":"User","site_admin":false},"repo":{"id":2776102,"name":"smuxi","full_name":"carlosmn/smuxi","owner":{"login":"carlosmn","id":335443,"avatar_url":"https://avatars.githubusercontent.com/u/335443?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosmn","html_url":"https://github.com/carlosmn","followers_url":"https://api.github.com/users/carlosmn/followers","following_url":"https://api.github.com/users/carlosmn/following{/other_user}","gists_url":"https://api.github.com/users/carlosmn/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosmn/subscriptions","organizations_url":"https://api.github.com/users/carlosmn/orgs","repos_url":"https://api.github.com/users/carlosmn/repos","events_url":"https://api.github.com/users/carlosmn/events{/privacy}","received_events_url":"https://api.github.com/users/carlosmn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carlosmn/smuxi","description":"Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform IRC client for sophisticated users, targeting the GNOME desktop.","fork":true,"url":"https://api.github.com/repos/carlosmn/smuxi","forks_url":"https://api.github.com/repos/carlosmn/smuxi/forks","keys_url":"https://api.github.com/repos/carlosmn/smuxi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carlosmn/smuxi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carlosmn/smuxi/teams","hooks_url":"https://api.github.com/repos/carlosmn/smuxi/hooks","issue_events_url":"https://api.github.com/repos/carlosmn/smuxi/issues/events{/number}","events_url":"https://api.github.com/repos/carlosmn/smuxi/events","assignees_url":"https://api.github.com/repos/carlosmn/smuxi/assignees{/user}","branches_url":"https://api.github.com/repos/carlosmn/smuxi/branches{/branch}","tags_url":"https://api.github.com/repos/carlosmn/smuxi/tags","blobs_url":"https://api.github.com/repos/carlosmn/smuxi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carlosmn/smuxi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carlosmn/smuxi/git/refs{/sha}","trees_url":"https://api.github.com/repos/carlosmn/smuxi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carlosmn/smuxi/statuses/{sha}","languages_url":"https://api.github.com/repos/carlosmn/smuxi/languages","stargazers_url":"https://api.github.com/repos/carlosmn/smuxi/stargazers","contributors_url":"https://api.github.com/repos/carlosmn/smuxi/contributors","subscribers_url":"https://api.github.com/repos/carlosmn/smuxi/subscribers","subscription_url":"https://api.github.com/repos/carlosmn/smuxi/subscription","commits_url":"https://api.github.com/repos/carlosmn/smuxi/commits{/sha}","git_commits_url":"https://api.github.com/repos/carlosmn/smuxi/git/commits{/sha}","comments_url":"https://api.github.com/repos/carlosmn/smuxi/comments{/number}","issue_comment_url":"https://api.github.com/repos/carlosmn/smuxi/issues/comments/{number}","contents_url":"https://api.github.com/repos/carlosmn/smuxi/contents/{+path}","compare_url":"https://api.github.com/repos/carlosmn/smuxi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carlosmn/smuxi/merges","archive_url":"https://api.github.com/repos/carlosmn/smuxi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carlosmn/smuxi/downloads","issues_url":"https://api.github.com/repos/carlosmn/smuxi/issues{/number}","pulls_url":"https://api.github.com/repos/carlosmn/smuxi/pulls{/number}","milestones_url":"https://api.github.com/repos/carlosmn/smuxi/milestones{/number}","notifications_url":"https://api.github.com/repos/carlosmn/smuxi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carlosmn/smuxi/labels{/name}","releases_url":"https://api.github.com/repos/carlosmn/smuxi/releases{/id}","created_at":"2011-11-14T22:52:21Z","updated_at":"2014-05-13T11:22:17Z","pushed_at":"2015-01-31T13:47:33Z","git_url":"git://github.com/carlosmn/smuxi.git","ssh_url":"git@github.com:carlosmn/smuxi.git","clone_url":"https://github.com/carlosmn/smuxi.git","svn_url":"https://github.com/carlosmn/smuxi","homepage":"http://www.smuxi.org/","size":13140,"stargazers_count":2,"watchers_count":2,"language":"C#","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":2,"default_branch":"master"}},"base":{"label":"meebey:master","ref":"master","sha":"7ae274ff344947397eaa9d81cdbdc25243ad0830","user":{"login":"meebey","id":318066,"avatar_url":"https://avatars.githubusercontent.com/u/318066?v=3","gravatar_id":"","url":"https://api.github.com/users/meebey","html_url":"https://github.com/meebey","followers_url":"https://api.github.com/users/meebey/followers","following_url":"https://api.github.com/users/meebey/following{/other_user}","gists_url":"https://api.github.com/users/meebey/gists{/gist_id}","starred_url":"https://api.github.com/users/meebey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meebey/subscriptions","organizations_url":"https://api.github.com/users/meebey/orgs","repos_url":"https://api.github.com/users/meebey/repos","events_url":"https://api.github.com/users/meebey/events{/privacy}","received_events_url":"https://api.github.com/users/meebey/received_events","type":"User","site_admin":false},"repo":{"id":2728572,"name":"smuxi","full_name":"meebey/smuxi","owner":{"login":"meebey","id":318066,"avatar_url":"https://avatars.githubusercontent.com/u/318066?v=3","gravatar_id":"","url":"https://api.github.com/users/meebey","html_url":"https://github.com/meebey","followers_url":"https://api.github.com/users/meebey/followers","following_url":"https://api.github.com/users/meebey/following{/other_user}","gists_url":"https://api.github.com/users/meebey/gists{/gist_id}","starred_url":"https://api.github.com/users/meebey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meebey/subscriptions","organizations_url":"https://api.github.com/users/meebey/orgs","repos_url":"https://api.github.com/users/meebey/repos","events_url":"https://api.github.com/users/meebey/events{/privacy}","received_events_url":"https://api.github.com/users/meebey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meebey/smuxi","description":"Smuxi is an user-friendly and free IRC client for Linux, Windows and Mac OS X based on GNOME / GTK+","fork":false,"url":"https://api.github.com/repos/meebey/smuxi","forks_url":"https://api.github.com/repos/meebey/smuxi/forks","keys_url":"https://api.github.com/repos/meebey/smuxi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meebey/smuxi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meebey/smuxi/teams","hooks_url":"https://api.github.com/repos/meebey/smuxi/hooks","issue_events_url":"https://api.github.com/repos/meebey/smuxi/issues/events{/number}","events_url":"https://api.github.com/repos/meebey/smuxi/events","assignees_url":"https://api.github.com/repos/meebey/smuxi/assignees{/user}","branches_url":"https://api.github.com/repos/meebey/smuxi/branches{/branch}","tags_url":"https://api.github.com/repos/meebey/smuxi/tags","blobs_url":"https://api.github.com/repos/meebey/smuxi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meebey/smuxi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meebey/smuxi/git/refs{/sha}","trees_url":"https://api.github.com/repos/meebey/smuxi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meebey/smuxi/statuses/{sha}","languages_url":"https://api.github.com/repos/meebey/smuxi/languages","stargazers_url":"https://api.github.com/repos/meebey/smuxi/stargazers","contributors_url":"https://api.github.com/repos/meebey/smuxi/contributors","subscribers_url":"https://api.github.com/repos/meebey/smuxi/subscribers","subscription_url":"https://api.github.com/repos/meebey/smuxi/subscription","commits_url":"https://api.github.com/repos/meebey/smuxi/commits{/sha}","git_commits_url":"https://api.github.com/repos/meebey/smuxi/git/commits{/sha}","comments_url":"https://api.github.com/repos/meebey/smuxi/comments{/number}","issue_comment_url":"https://api.github.com/repos/meebey/smuxi/issues/comments/{number}","contents_url":"https://api.github.com/repos/meebey/smuxi/contents/{+path}","compare_url":"https://api.github.com/repos/meebey/smuxi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meebey/smuxi/merges","archive_url":"https://api.github.com/repos/meebey/smuxi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meebey/smuxi/downloads","issues_url":"https://api.github.com/repos/meebey/smuxi/issues{/number}","pulls_url":"https://api.github.com/repos/meebey/smuxi/pulls{/number}","milestones_url":"https://api.github.com/repos/meebey/smuxi/milestones{/number}","notifications_url":"https://api.github.com/repos/meebey/smuxi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meebey/smuxi/labels{/name}","releases_url":"https://api.github.com/repos/meebey/smuxi/releases{/id}","created_at":"2011-11-07T19:20:48Z","updated_at":"2015-01-31T01:13:06Z","pushed_at":"2015-01-31T01:13:06Z","git_url":"git://github.com/meebey/smuxi.git","ssh_url":"git@github.com:meebey/smuxi.git","clone_url":"https://github.com/meebey/smuxi.git","svn_url":"https://github.com/meebey/smuxi","homepage":"https://smuxi.im/","size":19523,"stargazers_count":77,"watchers_count":77,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":30,"forks":27,"open_issues":30,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meebey/smuxi/pulls/206"},"html":{"href":"https://github.com/meebey/smuxi/pull/206"},"issue":{"href":"https://api.github.com/repos/meebey/smuxi/issues/206"},"comments":{"href":"https://api.github.com/repos/meebey/smuxi/issues/206/comments"},"review_comments":{"href":"https://api.github.com/repos/meebey/smuxi/pulls/206/comments"},"review_comment":{"href":"https://api.github.com/repos/meebey/smuxi/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/meebey/smuxi/pulls/206/commits"},"statuses":{"href":"https://api.github.com/repos/meebey/smuxi/statuses/dbdbbfca485a924d0817ddc38cc76ad6018d54e3"}}}}