Skip to content

Commit

Permalink
Support autojoin="true" in MUC bookmarks.
Browse files Browse the repository at this point in the history
Fix #807.
  • Loading branch information
pitchum committed Feb 26, 2019
1 parent cce92b0 commit 54d5fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moxl/src/Moxl/Xec/Action/Bookmark/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function saveItem($c)
$conference->conference = (string)$c->attributes()->jid;
$conference->name = (string)$c->attributes()->name;
$conference->nick = (string)$c->nick;
$conference->autojoin = (boolean)$c->attributes()->autojoin;
$conference->autojoin = filter_var($c->attributes()->autojoin, FILTER_VALIDATE_BOOLEAN);

$conference->save();
}
Expand Down

0 comments on commit 54d5fe3

Please sign in to comment.