<table><tr><td style="">sredman created this revision.<br />Herald added a project: KDE Connect.<br />Herald added a subscriber: kdeconnect.<br />sredman requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15409">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Update sms app model to use new conversationUpdated signal</p>
<p>Filter incoming messages which belong to a different conversation than the one currently being viewed</p>
<p>Ideally, the Android side should be updated to send a packet on a newly *sent* messages as well. If the user types a message on the phone while the desktop SMS app is running, it would be nice to reflect that. I do not think this will require any changes on the desktop side, but it would be best to get Android working to verify this assumption.</p>
<p>TODO: Dump support for old-style Telephony SMS packets, since the phone now sends new-style as well<br />
TODO: Figure out how to snoop *sent* message on Android and forward those as well</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>This patch relies on <a href="https://phabricator.kde.org/D15360" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D15360</a> for Android-side support</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Positive case:<ul class="remarkup-list">
<li class="remarkup-list-item">Open a conversation in the SMS app</li>
<li class="remarkup-list-item">Receive a new message into that conversation (text yourself?)</li>
<li class="remarkup-list-item">Verify that the new message appears at the bottom of the appropriate conversation</li>
</ul></li>
<li class="remarkup-list-item">Negative case:<ul class="remarkup-list">
<li class="remarkup-list-item">Open a conversation in the SMS app</li>
<li class="remarkup-list-item">Receive a new message into a different conversation (text yourself?)</li>
<li class="remarkup-list-item">Verify that the new message does *not* appear in the open conversation</li>
</ul></li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R224 KDE Connect</div></div></div><br /><div><strong>BRANCH</strong><div><div>sms-synchro</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15409">https://phabricator.kde.org/D15409</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/sms/conversationsdbusinterface.cpp<br />
plugins/sms/conversationsdbusinterface.h<br />
plugins/sms/kdeconnect_sms.json<br />
smsapp/conversationmodel.cpp<br />
smsapp/conversationmodel.h</div></div></div><br /><div><strong>To: </strong>sredman<br /><strong>Cc: </strong>kdeconnect, dvalencia, rmenezes, julioc, Leptopoda, timothyc, jdvr, marcorichetta, yannux, Danial0_0, johnq, Pitel, adeen-s, SemperPeritus, ndavis, daniel.z.tg, jeanv, seebauer, bugzy, MayeulC, menasshock, tctara, apol<br /></div>