Browse Source

- Fix the Presence setter (broken with the new parser)

pull/16/head
Jaussoin Timothée 11 years ago
parent
commit
291b8c9484
  1. 3
      app/models/presence/Presence.php
  2. 2
      app/widgets/Groups/groups.js

3
app/models/presence/Presence.php

@ -113,8 +113,7 @@ class Presence extends Model {
// Specific XEP
if($stanza->x) {
foreach($stanza->children() as $name => $c) {
$ns = $c->getNamespaces(true);
switch($ns['']) {
switch($c->attributes()->xmlns) {
case 'jabber:x:signed' :
$this->publickey = (string)$c;
break;

2
app/widgets/Groups/groups.js

@ -8,8 +8,8 @@ var Groups = {
items[i].onclick = function(e) {
MovimTpl.scrollPanelTop();
Group_ajaxGetItems(this.dataset.server, this.dataset.node);
Group_ajaxGetAffiliations(this.dataset.server, this.dataset.node);
Group_ajaxGetMetadata(this.dataset.server, this.dataset.node);
Group_ajaxGetAffiliations(this.dataset.server, this.dataset.node);
Groups.reset(items);
movim_add_class(this, 'active');
}

Loading…
Cancel
Save