title: Basic Chat using elm-native-ui
body: <p>I'm creating a basic native chat app with elm-native-ui.</p>
  
  <p>I can open or close the chat by clicking on a button that change the chatOpen boolean</p>
  
  <pre><code>activeChannelView =
      case chatOpen of
          True -&gt;
              Maybe.map (\a -&gt; chatView users a messages) activeChannel ? viewEmpty
  
          False -&gt;
              Maybe.map (cardView users) activeChannel ? viewEmpty
  </code></pre>
  
  <p>on the False side, it’s working well but on the True side it says that viewEmpty needs to be a (String -> Node Msg) instead of being (Node Msg) but the left side (chatView user a messages) returns Node Msg</p>
  
  <p>Check the error below</p>
  
  <pre><code>The right side of (?) is causing a type mismatch.
  
  Maybe.map (\a -&gt; chatView users a messages)  activeChannel ? viewEmpty
  
  ^^^^^^^^^
  (?) is expecting the right side to be a:
  
  String -&gt; Node Msg
  
  But the right side is:
  
      Node Msg
  </code></pre>
  
  <p>I suppose it means that:
  if activeChannel is (Just a), True returns (String -> Node Msg)</p>
  
  <p>How is it possible to have this error since chatView is defined like that:</p>
  
  <pre><code>chatView : List User -&gt; Request -&gt; List String -&gt; String -&gt; Node Msg
  </code></pre>