{"action":"created","issue":{"url":"https://api.github.com/repos/wireapp/wire-ios-data-model/issues/13","repository_url":"https://api.github.com/repos/wireapp/wire-ios-data-model","labels_url":"https://api.github.com/repos/wireapp/wire-ios-data-model/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/wireapp/wire-ios-data-model/issues/13/comments","events_url":"https://api.github.com/repos/wireapp/wire-ios-data-model/issues/13/events","html_url":"https://github.com/wireapp/wire-ios-data-model/pull/13","id":171891990,"number":13,"title":"Reset the link preview state to .WaitingToBeProcessed when editing a message","user":{"login":"daehn","id":4603353,"avatar_url":"https://avatars.githubusercontent.com/u/4603353?v=3","gravatar_id":"","url":"https://api.github.com/users/daehn","html_url":"https://github.com/daehn","followers_url":"https://api.github.com/users/daehn/followers","following_url":"https://api.github.com/users/daehn/following{/other_user}","gists_url":"https://api.github.com/users/daehn/gists{/gist_id}","starred_url":"https://api.github.com/users/daehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daehn/subscriptions","organizations_url":"https://api.github.com/users/daehn/orgs","repos_url":"https://api.github.com/users/daehn/repos","events_url":"https://api.github.com/users/daehn/events{/privacy}","received_events_url":"https://api.github.com/users/daehn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wireapp/wire-ios-data-model/labels/Internal","name":"Internal","color":"006b75"},{"url":"https://api.github.com/repos/wireapp/wire-ios-data-model/labels/Reviewed%20-%20Marco","name":"Reviewed - Marco","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-18T12:44:12Z","updated_at":"2016-08-18T16:13:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wireapp/wire-ios-data-model/pulls/13","html_url":"https://github.com/wireapp/wire-ios-data-model/pull/13","diff_url":"https://github.com/wireapp/wire-ios-data-model/pull/13.diff","patch_url":"https://github.com/wireapp/wire-ios-data-model/pull/13.patch"},"body":"### **What's in this PR?**\r\n\r\nWhen editing a message we insert a `ZMMessageEdit` and hide the original message, this means we loose link previews contained in the original message which also might no longer be valid (the user could edit/delete the link or insert a new one). Because of this we now reset the `ZMLinkPreviewState` to `.WaitingToBeProcessed` in order to make the `LinkPreviewPreprocessor` pick up this message again and download available previews. \r\n\r\nAs the structure of a `ZMMessageEdit` differs from a regular text message some adjustments have to be made on `wire-iso-sync-engine`.\r\n\r\n---\r\n\r\n🚫 This PR depends on the following releases:\r\n- [ ] `wire-ios-protos` after https://github.com/wireapp/wire-ios-protos/pull/5 has been merged"},"comment":{"url":"https://api.github.com/repos/wireapp/wire-ios-data-model/issues/comments/240774610","html_url":"https://github.com/wireapp/wire-ios-data-model/pull/13#issuecomment-240774610","issue_url":"https://api.github.com/repos/wireapp/wire-ios-data-model/issues/13","id":240774610,"user":{"login":"marcoconti83","id":620000,"avatar_url":"https://avatars.githubusercontent.com/u/620000?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoconti83","html_url":"https://github.com/marcoconti83","followers_url":"https://api.github.com/users/marcoconti83/followers","following_url":"https://api.github.com/users/marcoconti83/following{/other_user}","gists_url":"https://api.github.com/users/marcoconti83/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoconti83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoconti83/subscriptions","organizations_url":"https://api.github.com/users/marcoconti83/orgs","repos_url":"https://api.github.com/users/marcoconti83/repos","events_url":"https://api.github.com/users/marcoconti83/events{/privacy}","received_events_url":"https://api.github.com/users/marcoconti83/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T16:13:39Z","updated_at":"2016-08-18T16:13:39Z","body":"Dependency merged"}}
{"actor":{"display_login":"marcoconti83"}}