Browse Source

- Fix a little RPC call error in Chats

- Add the presences in _rooms_list.tpl
pull/16/head
Jaussoin Timothée 11 years ago
parent
commit
81f57e4ca5
  1. 1
      app/widgets/Chats/Chats.php
  2. 3
      app/widgets/Rooms/_rooms_list.tpl

1
app/widgets/Chats/Chats.php

@ -61,7 +61,6 @@ class Chats extends WidgetCommon
Cache::c('chats', $chats);
RPC::call('movim_prepend', 'chats_widget_list', $this->prepareChat($jid));
RPC::call('Chat.refresh');
RPC::call('Chats.refresh');
}
}

3
app/widgets/Rooms/_rooms_list.tpl

@ -2,9 +2,10 @@
<h3>{$c->__('chatrooms.users')}</h3>
<br />
<ul class="active">
{$presence = getPresencesTxt()}
{loop="$list"}
<li onclick="Chats_ajaxOpen('{$value->jid}/{$value->resource}'); Dialog.clear();">
<span class="icon bubble color {$value->resource|stringToColor}">
<span class="icon bubble color {$value->resource|stringToColor} status {$presence[$value->value]}">
{$value->resource|firstLetterCapitalize}
</span>
{if="$value->mucaffiliation =='owner'"}

Loading…
Cancel
Save