<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/115844/">https://git.reviewboard.kde.org/r/115844/</a>
     </td>
    </tr>
   </table>
   <br />











<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="https://git.reviewboard.kde.org/r/115844/diff/1/?file=244655#file244655line333" style="color: black; font-weight: bold; text-decoration: underline;">KTp/contact-info-dialog.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">333</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">addStateRow</span><span class="p">(</span><span class="n">i18n</span><span class="p">(</span><span class="s">"Contact can see when you are online:"</span><span class="p">),</span> <span class="n">contact</span><span class="o">-></span><span class="n">publishState</span><span class="p">());</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I'd rather not delete the widgets and re-add them if we can avoid it.

Can we just change update the icon?</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="https://git.reviewboard.kde.org/r/115844/diff/1/?file=244655#file244655line391" style="color: black; font-weight: bold; text-decoration: underline;">KTp/contact-info-dialog.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">ContactInfoDialog::ContactInfoDialog(const Tp::AccountPtr& account, const Tp::ContactPtr& contact, QWidget* parent)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">369</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">d</span><span class="o">-></span><span class="n">addStateRow</span><span class="p">(</span><span class="n">i18n</span><span class="p">(</span><span class="s">"Contact is blocked:"</span><span class="p">),</span> <span class="n">contact</span><span class="o">-></span><span class="n">isBlocked</span><span class="p">()</span> <span class="o">?</span> <span class="n">Tp</span><span class="o">::</span><span class="n">Contact</span><span class="o">::</span><span class="n">PresenceStateYes</span> <span class="o">:</span> <span class="n">Tp</span><span class="o">::</span><span class="n">Contact</span><span class="o">::</span><span class="n">PresenceStateNo</span><span class="p">);</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">391</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">contact</span><span class="o">-></span><span class="n">isPublishStateKnown</span><span class="p">()</span> <span class="o">||</span> <span class="o">!</span><span class="n">contact</span><span class="o">-></span><span class="n">isSubscriptionStateKnown</span><span class="p">())</span> <span class="p">{</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">publish state and subscription state can be unknown for other reasons (like the CM not supporting it)

Also some accounts don't support feature Roster (local-xmpp), which means this then  explodes unfortunately.

I think we need

if (connection->features() does not contain FeatureRoster && connection->supportedFeatures does contain FeatureRoster) {
   connection->becomeReady(...)
}
</pre>
</div>
<br />



<p>- David Edmundson</p>


<br />
<p>On February 17th, 2014, 8:15 p.m. UTC, Jan Stourac wrote:</p>








<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Telepathy.</div>
<div>By Jan Stourac.</div>


<p style="color: grey;"><i>Updated Feb. 17, 2014, 8:15 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
ktp-common-internals
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">dialog does not show correct icon indicating publish/subscription state due to missing roster feature of connection...</pre>
  </td>
 </tr>
</table>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>KTp/contact-info-dialog.h <span style="color: grey">(2bf8a57)</span></li>

 <li>KTp/contact-info-dialog.cpp <span style="color: grey">(1e7087e)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/115844/diff/" style="margin-left: 3em;">View Diff</a></p>







  </td>
 </tr>
</table>








  </div>
 </body>
</html>