{"action":"created","issue":{"url":"https://api.github.com/repos/wireapp/wire-ios/issues/2700","repository_url":"https://api.github.com/repos/wireapp/wire-ios","labels_url":"https://api.github.com/repos/wireapp/wire-ios/issues/2700/labels{/name}","comments_url":"https://api.github.com/repos/wireapp/wire-ios/issues/2700/comments","events_url":"https://api.github.com/repos/wireapp/wire-ios/issues/2700/events","html_url":"https://github.com/wireapp/wire-ios/pull/2700","id":363188333,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3Njg4OTgx","number":2700,"title":"Fix: self mention is not highlighted properly if it contains multibyte unicode chars","user":{"login":"billypchan","id":11852044,"node_id":"MDQ6VXNlcjExODUyMDQ0","avatar_url":"https://avatars3.githubusercontent.com/u/11852044?v=4","gravatar_id":"","url":"https://api.github.com/users/billypchan","html_url":"https://github.com/billypchan","followers_url":"https://api.github.com/users/billypchan/followers","following_url":"https://api.github.com/users/billypchan/following{/other_user}","gists_url":"https://api.github.com/users/billypchan/gists{/gist_id}","starred_url":"https://api.github.com/users/billypchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billypchan/subscriptions","organizations_url":"https://api.github.com/users/billypchan/orgs","repos_url":"https://api.github.com/users/billypchan/repos","events_url":"https://api.github.com/users/billypchan/events{/privacy}","received_events_url":"https://api.github.com/users/billypchan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-24T15:06:05Z","updated_at":"2018-09-24T16:15:47Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/wireapp/wire-ios/pulls/2700","html_url":"https://github.com/wireapp/wire-ios/pull/2700","diff_url":"https://github.com/wireapp/wire-ios/pull/2700.diff","patch_url":"https://github.com/wireapp/wire-ios/pull/2700.patch"},"body":"## What's new in this PR?\r\n\r\n### Issues\r\n\r\nself mention is not highlighted properly if it contains multibyte unicode chars\r\n\r\n### Causes\r\n\r\nNSMutableString's substring method does not give correct output for the string contains multibyte unicode chars.\r\n\r\n### Solutions\r\n\r\nRewrite using Swift's String's subscript method.\r\n\r\n\r\n## Notes\r\n\r\n- [ ] Move String.substring to Wire Utility\r\n"},"comment":{"url":"https://api.github.com/repos/wireapp/wire-ios/issues/comments/424033687","html_url":"https://github.com/wireapp/wire-ios/pull/2700#issuecomment-424033687","issue_url":"https://api.github.com/repos/wireapp/wire-ios/issues/2700","id":424033687,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDAzMzY4Nw==","user":{"login":"billypchan","id":11852044,"node_id":"MDQ6VXNlcjExODUyMDQ0","avatar_url":"https://avatars3.githubusercontent.com/u/11852044?v=4","gravatar_id":"","url":"https://api.github.com/users/billypchan","html_url":"https://github.com/billypchan","followers_url":"https://api.github.com/users/billypchan/followers","following_url":"https://api.github.com/users/billypchan/following{/other_user}","gists_url":"https://api.github.com/users/billypchan/gists{/gist_id}","starred_url":"https://api.github.com/users/billypchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billypchan/subscriptions","organizations_url":"https://api.github.com/users/billypchan/orgs","repos_url":"https://api.github.com/users/billypchan/repos","events_url":"https://api.github.com/users/billypchan/events{/privacy}","received_events_url":"https://api.github.com/users/billypchan/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T16:15:47Z","updated_at":"2018-09-24T16:15:47Z","author_association":"CONTRIBUTOR","body":"Tested with the build after https://github.com/wireapp/wire-ios/pull/2696, the username with emoji has no link attribute. I will try another approach without using the String class's methods."}}
{"actor":{"display_login":"billypchan"}}