replace invalid characters with _ also in groups
This commit is contained in:
parent
e321feda15
commit
379074e87b
1 changed files with 3 additions and 1 deletions
|
@ -231,7 +231,9 @@ static void handleBuddyPayload(LocalBuddy *buddy, const pbnetwork::Buddy &payloa
|
|||
// Change groups if it's not empty. The same as above...
|
||||
std::vector<std::string> groups;
|
||||
for (int i = 0; i < payload.group_size(); i++) {
|
||||
groups.push_back(payload.group(i));
|
||||
std::string group = payload.group(i);
|
||||
utf8::replace_invalid(payload.group(i).begin(), payload.group(i).end(), group.begin(), '_');
|
||||
groups.push_back(group);
|
||||
}
|
||||
if (!groups.empty()) {
|
||||
buddy->setGroups(groups);
|
||||
|
|
Loading…
Add table
Reference in a new issue