[Bug 23844] telepathy-spec should be extended to offer API to retrieve logs

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 8 01:44:25 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=23844

--- Comment #9 from Alexandr Akulich <akulichalexander at gmail.com> ---
I spent a few hours and added some trivial Channel.Interface.MessageArchive to
TelepathyQt and Morse (my connection manager for Telegram network).

Good news: it is simple to implement and it actually works.
Bad news: I didn't make a client to sort retrieved messages by timestamp. At
this moment messages showed in order of MessageReceived emission, which follow
the order from telegram server, which is "from newer to older".

How it looks like right now:
I open a text channel, send dbus request like this:

dbus-send
--dest=org.freedesktop.Telepathy.Connection.morse.telegram.connection_140f220
/org/freedesktop/Telepathy/Connection/morse/telegram/connection_140f220/TextChannel0
org.freedesktop.Telepathy.Channel.Interface.MessageArchive.GetMessages 
dict:string:uint32:"limit",30

and get last 30 messages from this conversation in my telepathy client.

It's too early to public the code or spec, but I would try hard to public
something testable for Telegram users this month.
Time to time I also work on Qt-based XMPP connection manager, so may be we will
have XEP-0313 available for telepathy users this year.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.


More information about the telepathy-bugs mailing list