diff --git a/app/models/contact/ContactDAO.php b/app/models/contact/ContactDAO.php
index 8cd96ade7..e197a4588 100755
--- a/app/models/contact/ContactDAO.php
+++ b/app/models/contact/ContactDAO.php
@@ -653,7 +653,7 @@ class ContactDAO extends SQL {
group by jid
) as b on ( a.id = b.id )
) presence on jidfrom = presence.jid
- order by count desc
+ order by presence.value, count desc
limit :tunelenght';
$this->prepare(
diff --git a/app/widgets/Group/_group_posts.tpl b/app/widgets/Group/_group_posts.tpl
index 58eee878a..c76324433 100755
--- a/app/widgets/Group/_group_posts.tpl
+++ b/app/widgets/Group/_group_posts.tpl
@@ -83,7 +83,7 @@
{/loop}
{if="$posts != null"}
- -
+
-
diff --git a/app/widgets/Roster/locales.ini b/app/widgets/Roster/locales.ini
index 34e2d88aa..cf33afa95 100644
--- a/app/widgets/Roster/locales.ini
+++ b/app/widgets/Roster/locales.ini
@@ -5,7 +5,8 @@ hide_disconnected = Hide disconnected contacts
show_group = Show group %s
hide_group = Hide group %s
jid_error = Please enter a valid Jabber ID
-no_contacts = No contacts ? You can add one using the + button bellow or going to the Explore page
+no_contacts_title = No contacts ?
+no_contacts_text = You can add one using the + button bellow
show_hide = Show/Hide
add_contact_info1 = Enter the Jabber ID of your contact.
add_contact_info2 = Press enter to validate.
diff --git a/app/widgets/Roster/roster.css b/app/widgets/Roster/roster.css
index 88115d83b..c0e192d02 100755
--- a/app/widgets/Roster/roster.css
+++ b/app/widgets/Roster/roster.css
@@ -11,7 +11,7 @@
position: relative;
}
-#roster ul#rosterlist > div {
+#roster ul#rosterlist > div:not(.empty) {
height: 5rem;
overflow: hidden;
}
@@ -39,32 +39,9 @@
#roster ul#rosterlist.offlineshown > div.groupshown > li {
display: list-item;
}
-/*
-#roster ul#rosterlist.offlineshown div.groupshown li:not(:first-child),
-#roster ul#rosterlist.offlineshown div li:not(:first-child),
-#roster ul#rosterlist div.groupshown li:not(:first-child),
-#roster ul#rosterlist div li:not(:first-child) {
- display: none;
-}
-* */
-
-/* Show some clients icons, Xabber style */
-/*
-#roster ul#rosterlist li.client a {
- background-repeat: no-repeat;
- background-position: 95% center;
-}
-
-#roster ul#rosterlist li.client.adium a { background-image: url(img/clients/adium.png); }
-#roster ul#rosterlist li.client.pidgin a { background-image: url(img/clients/pidgin.png); }
-#roster ul#rosterlist li.client.gajim a { background-image: url(img/clients/gajim.png); }
-#roster ul#rosterlist li.client.telepathy a { background-image: url(img/clients/empathy.png); }
-#roster ul#rosterlist li.client.xabber a { background-image: url(img/clients/xabber.png); }
-#roster ul#rosterlist li.client.psi a,
-#roster ul#rosterlist li.client.psi+ a { background-image: url(img/clients/psi.png); }
-*/
/* Chat button */
+/*
#roster ul#rosterlist li .chat {
width: 2rem;
height: 2rem;
@@ -75,7 +52,7 @@
border-radius: 2em;
background-color: #DDD;
}
-
+*/
/* Search */
#roster ul li.subheader.search,
#roster.search ul#rosterlist div.groupshown > li {
diff --git a/app/widgets/Roster/roster.tpl b/app/widgets/Roster/roster.tpl
index 536183252..59d4b87a0 100644
--- a/app/widgets/Roster/roster.tpl
+++ b/app/widgets/Roster/roster.tpl
@@ -1,9 +1,10 @@
-
- {$c->__('roster.no_contacts')}
-
-
+
+
{$c->__('roster.no_contacts_title')}
+ {$c->__('roster.no_contacts_text')}
+
+
diff --git a/app/widgets/Vcard4/_vcard4_form.tpl b/app/widgets/Vcard4/_vcard4_form.tpl
index 735bc2d4d..16b4f8a19 100755
--- a/app/widgets/Vcard4/_vcard4_form.tpl
+++ b/app/widgets/Vcard4/_vcard4_form.tpl
@@ -178,12 +178,12 @@
class="button color oppose"
id="vcard4validate"
>
- {$c->__('vcard.submit')}
+ {$c->__('button.save')}
- {$c->__('vcard.reset')}
+ {$c->__('button.reset')}
diff --git a/linker.php b/linker.php
index d02ab9c78..89872af30 100755
--- a/linker.php
+++ b/linker.php
@@ -72,7 +72,7 @@ $stdin_behaviour = function ($data) use (&$conn, $loop, &$buffer, &$connector, &
$xml = \Moxl\API::commit();
\Moxl\API::clear();
- $loop->tick();
+ //$loop->tick();
if(!empty($xml) && $conn) {
$conn->write(trim($xml));
@@ -83,7 +83,7 @@ $stdin_behaviour = function ($data) use (&$conn, $loop, &$buffer, &$connector, &
$buffer .= $data;
}
- $loop->tick();
+ //$loop->tick();
};
$xmpp_behaviour = function (React\Stream\Stream $stream) use (&$conn, $loop, &$stdin, $stdin_behaviour, $parser) {
@@ -146,8 +146,8 @@ $xmpp_behaviour = function (React\Stream\Stream $stream) use (&$conn, $loop, &$s
}
// Two ticks to be sure that we get everything from the socket, sic…
- $loop->tick();
- $loop->tick();
+ //$loop->tick();
+ //$loop->tick();
});
$conn->on('error', function($msg) use ($conn, $loop) {
diff --git a/themes/material/css/style.css b/themes/material/css/style.css
index 9a501f679..36b56dc3a 100644
--- a/themes/material/css/style.css
+++ b/themes/material/css/style.css
@@ -760,6 +760,7 @@ main section > div:first-child:nth-last-child(2) ~ div .actions.fixed > div:last
.icon.news { background-image: url(../img/icons/receipt.svg); }
.icon.forum { background-image: url(../img/icons/forum.svg); }
+.icon.contacts { background-image: url(../img/icons/group.svg); }
.icon.media { background-image: url(../img/placeholder/media.png); }
.icon.explore { background-image: url(../img/placeholder/explore.png); }
.icon.plane { background-image: url(../img/placeholder/plane.png); }