Replace old flexiapi url by url from assistant rc.

Use presence model last activity API for timestamp.
Fix account display name size.
This commit is contained in:
Julien Wadel 2023-07-17 16:33:04 +02:00
parent b3900c9105
commit 03b9e0c03c
5 changed files with 32 additions and 24 deletions

View file

@ -45,4 +45,8 @@
<entry name="username_regex" overwrite="true">^[a-z0-9+_.\-]*$</entry>
<entry name="xmlrpc_url" overwrite="true">https://subscribe.linphone.org:444/wizard.php</entry>
</section>
<section name="account_creator">
<entry name="backend" overwrite="true">1</entry>
<entry name="url" overwrite="true">https://subscribe.linphone.org/api/</entry>
</section>
</config>

View file

@ -45,4 +45,8 @@
<entry name="username_regex" overwrite="true">^[a-z0-9+_.\-]*$</entry>
<entry name="xmlrpc_url" overwrite="true">https://subscribe.linphone.org:444/wizard.php</entry>
</section>
<section name="account_creator">
<entry name="backend" overwrite="true">1</entry>
<entry name="url" overwrite="true">https://subscribe.linphone.org/api/</entry>
</section>
</config>

View file

@ -512,42 +512,41 @@
</context>
<context>
<name>Chat</name>
<message>
<source>newMessagePlaceholder</source>
<translation>Zadejte zprávu</translation>
</message>
<message>
<source>noFileTransferUrl</source>
<translation>Soubor nelze odeslat .
Adresa URL serveru není nakonfigurována.</translation>
</message>
<message numerus="yes">
<source>chatTyping</source>
<extracomment>&apos;%1 is typing...&apos; indicate that someone is composing in chat</extracomment>
<translation>
<numerusform>%1 píše</numerusform>
<numerusform>%1 píší</numerusform>
<numerusform>%1 píše</numerusform>
</translation>
</message>
<message>
<source>allTextCopied</source>
<extracomment>&quot;Copied to clipboard&quot; : when a user copy a text from the menu, this message show up.</extracomment>
<translation>Zkopírováno do schránky</translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>selectedTextCopied</source>
<extracomment>&quot;Selection copied to clipboard&quot; : when a user copy a text from the menu, this message show up.</extracomment>
<translation>Výběr zkopírován do schránky</translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>forwardDialogTitle</source>
<extracomment>&apos;Choose where to forward the message&apos; : Dialog title for choosing where to forward the current message.</extracomment>
<translation>Zvolte, kam chcete zprávu přeposlat</translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>conferencesCopiedICS</source>
<translation>Pozvánka byla zkopírována</translation>
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<source>chatTyping</source>
<extracomment>&apos;%1 is typing...&apos; indicate that someone is composing in chat</extracomment>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<source>noFileTransferUrl</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>newMessagePlaceholder</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>

View file

@ -212,7 +212,7 @@ Presence::PresenceStatus ContactModel::getPresenceStatus () const {
QDateTime ContactModel::getPresenceTimestamp() const{
if(mLinphoneFriend->getPresenceModel()){
time_t timestamp = mLinphoneFriend->getPresenceModel()->getTimestamp();
time_t timestamp = mLinphoneFriend->getPresenceModel()->getLatestActivityTimestamp();
if(timestamp == -1)
return QDateTime();
else

View file

@ -70,7 +70,8 @@ Item {
Text {
id:username
Layout.fillWidth: true
Layout.alignment: !subtitle.visible ? Qt.AlignVCenter | Qt.AlignLeft: Qt.AlignBottom | Qt.AlignLeft
Layout.preferredHeight: accountStatus.noAccountConfigured ? -1 : parent.height / 2
Layout.alignment: !subtitle.visible ? Qt.AlignVCenter | Qt.AlignLeft : Qt.AlignBottom | Qt.AlignLeft
color: AccountStatusStyle.username.colorModel.color
elide: Text.ElideRight
font.bold: true