{"action":"created","issue":{"url":"https://api.github.com/repos/badoo/Chatto/issues/201","repository_url":"https://api.github.com/repos/badoo/Chatto","labels_url":"https://api.github.com/repos/badoo/Chatto/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/badoo/Chatto/issues/201/comments","events_url":"https://api.github.com/repos/badoo/Chatto/issues/201/events","html_url":"https://github.com/badoo/Chatto/issues/201","id":171014665,"number":201,"title":"Having trouble with createPresenterBuilders","user":{"login":"oktapodi","id":184249,"avatar_url":"https://avatars.githubusercontent.com/u/184249?v=3","gravatar_id":"","url":"https://api.github.com/users/oktapodi","html_url":"https://github.com/oktapodi","followers_url":"https://api.github.com/users/oktapodi/followers","following_url":"https://api.github.com/users/oktapodi/following{/other_user}","gists_url":"https://api.github.com/users/oktapodi/gists{/gist_id}","starred_url":"https://api.github.com/users/oktapodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oktapodi/subscriptions","organizations_url":"https://api.github.com/users/oktapodi/orgs","repos_url":"https://api.github.com/users/oktapodi/repos","events_url":"https://api.github.com/users/oktapodi/events{/privacy}","received_events_url":"https://api.github.com/users/oktapodi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-13T15:53:28Z","updated_at":"2016-08-14T10:08:31Z","closed_at":null,"body":"Hi, I'm new to Chattp and not able to fully grasp how all the different builders and presenters fit together.  Ive tried to follow the demo project and modify it to my requirements. Im having trouble with the createPresenterBuilders - here's my code\r\n\r\n```\r\noverride func createPresenterBuilders() -> [ChatItemType: [ChatItemPresenterBuilderProtocol]] {\r\nlet textMessagePresenter = TextMessagePresenterBuilder(viewModelBuilder: TextMessageViewModelDefaultBuilder(), interactionHandler: MyTextMessageHandler())\r\n        \r\n        textMessagePresenter.baseMessageStyle = BaseMessageCollectionViewCellAvatarStyle()\r\n        return [:]\r\n}\r\n```\r\nI get this error when i try to build the above code\r\n`Cannot convert value of type 'MyTextMessageHandler' to expected argument type '_?'`"},"comment":{"url":"https://api.github.com/repos/badoo/Chatto/issues/comments/239665745","html_url":"https://github.com/badoo/Chatto/issues/201#issuecomment-239665745","issue_url":"https://api.github.com/repos/badoo/Chatto/issues/201","id":239665745,"user":{"login":"diegosanchezr","id":6777207,"avatar_url":"https://avatars.githubusercontent.com/u/6777207?v=3","gravatar_id":"","url":"https://api.github.com/users/diegosanchezr","html_url":"https://github.com/diegosanchezr","followers_url":"https://api.github.com/users/diegosanchezr/followers","following_url":"https://api.github.com/users/diegosanchezr/following{/other_user}","gists_url":"https://api.github.com/users/diegosanchezr/gists{/gist_id}","starred_url":"https://api.github.com/users/diegosanchezr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegosanchezr/subscriptions","organizations_url":"https://api.github.com/users/diegosanchezr/orgs","repos_url":"https://api.github.com/users/diegosanchezr/repos","events_url":"https://api.github.com/users/diegosanchezr/events{/privacy}","received_events_url":"https://api.github.com/users/diegosanchezr/received_events","type":"User","site_admin":false},"created_at":"2016-08-14T10:08:31Z","updated_at":"2016-08-14T10:08:31Z","body":"@oktapodi you're not using `MyTextMessageViewModelBuilder` in your first snippet, and so the constraint InteractionHandlerT.ViewModelT == ViewModelBuilderT.ViewModelT doesn't hold. The compiler error is quite unfortunate though.\r\n"}}
{"actor":{"display_login":"diegosanchezr"}}