Review Request 128960: [KTp/Declarative/MessagesModel] Use message token to prevent message duplication on scrollback received

Alexandr Akulich akulichalexander at gmail.com
Sat Feb 25 22:43:46 UTC 2017



> On Sept. 20, 2016, 6:39 p.m., Aleix Pol Gonzalez wrote:
> > Ship It!
> 
> Albert Astals Cid wrote:
>     Ping any reason this is not commited?

I think I said that in IRC: spec says that we should not rely on message-token in this case.
https://telepathy.freedesktop.org/spec/Channel_Interface_Messages.html#Simple-Type:Protocol_Message_Token
As we discussed at FOSDEM with George Kiagiadakis, we need to either add an another key to message-header, or completely rewrite logging support.

We need to discuss this a bit more to decide, if this patch should be completely discarded, or reworked for another header key.


- Alexandr


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128960/#review99330
-----------------------------------------------------------


On Sept. 20, 2016, 6:27 p.m., Alexandr Akulich wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128960/
> -----------------------------------------------------------
> 
> (Updated Sept. 20, 2016, 6:27 p.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Repository: ktp-common-internals
> 
> 
> Description
> -------
> 
> Sent and received messages can be received again as scrollback and before this patch it leads to messages duplication.
> E.g.: server sent last 20 messages on connection to a group chat, the local user has a network issue and thus got disconnected and connected back with messaging window kept open.
> 
> We already have a table for sent messages and this patch:
> 1) adds insertion of received messages into the same table,
> 2) uses the table to ignore already sent/received messages.
> 
> In future we can also use the table to implement message correction (see XEP-0308, Message_Header_Key "supersedes" and so on).
> 
> 
> Diffs
> -----
> 
>   KTp/Declarative/messages-model.cpp 6823574 
> 
> Diff: https://git.reviewboard.kde.org/r/128960/diff/
> 
> 
> Testing
> -------
> 
> Sent and received messages are not duplicated on scrollback received.
> 
> 
> Thanks,
> 
> Alexandr Akulich
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20170225/67e5e185/attachment.html>


More information about the KDE-Telepathy mailing list