> My guess is that telepathy-logger and Empathy try to get the contact's > name by using the Connection.I.Aliasing interface [2]. Do you implement > Tp::BaseConnectionAliasingInterface [3] in your CM?
I think so. At [1] I've created the Tp::BaseConnectionAliasingInterface and at [2] and [3] I've implemented the getAliases() and setAliases() methods. All of this are at Connection.cxx, do you think I also need this at TextChannel.cxx where the addReceivedMessage() is called? [1] https://github.com/resiprocate/resiprocate/compare/master...MateusBellomo:mateus-presence-text#diff-82d1d1ba25e34af050fd6a6c5e5311dfR112 [2] https://github.com/resiprocate/resiprocate/compare/master...MateusBellomo:mateus-presence-text#diff-82d1d1ba25e34af050fd6a6c5e5311dfR251 [3] https://github.com/resiprocate/resiprocate/compare/master...MateusBellomo:mateus-presence-text#diff-82d1d1ba25e34af050fd6a6c5e5311dfR274 2016-07-24 5:19 GMT-03:00 George Kiagiadakis <gkia...@tolabaki.gr>: > On 07/23/2016 11:48 PM, Mateus Bellomo wrote: > > Hello, > > > > I would like to know if there is a page describing the > > addReceivedMessage() telepathy method. I have searched at google but > > didn't find anything, just usage examples at [1], [2], [3] and [4]. > > I don't think so, this is something specific to telepathy-qt and it's > not documented. I guess the best documentation for you is the source > code [1] :) > > > At [5] there is a Tp::BaseChannelTextTye class reference but there is no > > description of addReceivedMessage() method. > > > > I'm asking that because Empathy it's not showing the contact name, as it > > should, when it loads a conversation from history. I have looked the log > > generated at ~/.local/share/TpLogger/logs/* and I saw that this logs are > > stored as a xml. And I also noticed that the attribute 'name' is > > responsible for holding the names that appears in conversation history: > > > > <message time='20160723T03:09:26' id='mateusbell...@sip.antisip.com > > <mailto:mateusbell...@sip.antisip.com>' name='' token='' isuser='true' > > type='normal'>just testing</message> > > > > I saw that this attribute is appearing empty in my generated log and > > don't know how to set it. My guess is that this is set at > > addReceivedMessage() method and right now I'm setting the same > > attributes as telepathy-morse and telepathy-nonsense. > > My guess is that telepathy-logger and Empathy try to get the contact's > name by using the Connection.I.Aliasing interface [2]. Do you implement > Tp::BaseConnectionAliasingInterface [3] in your CM? > > > [1]. > > https://cgit.freedesktop.org/telepathy/telepathy-qt/tree/TelepathyQt/base-channel.cpp#n473 > [2]. > https://telepathy.freedesktop.org/spec/Connection_Interface_Aliasing.html > [3]. https://telepathy.freedesktop.org/doc/telepathy-qt/a00091.html > > _______________________________________________ > telepathy mailing list > telepathy@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/telepathy >
_______________________________________________ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy