forked from friendica/friendica-addons
jappixmini: also add to roster if no name set
This commit is contained in:
parent
d09db57f88
commit
cd28f9d7cc
1 changed files with 3 additions and 0 deletions
|
@ -126,6 +126,9 @@ function jappixmini_manage_roster(contacts, autoapprove, autosubscribe) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (approve) {
|
if (approve) {
|
||||||
|
name = contacts[xid];
|
||||||
|
if (!name) name = xid;
|
||||||
|
|
||||||
acceptSubscribe(xid, contacts[xid]);
|
acceptSubscribe(xid, contacts[xid]);
|
||||||
console.log("Accepted "+xid+" for chat.");
|
console.log("Accepted "+xid+" for chat.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue