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