Allow utf8 in roster room private char

This commit is contained in:
Michael Vetter
2021-10-22 16:42:57 +02:00
parent 8fc359ba2d
commit fa2881fcea
6 changed files with 22 additions and 27 deletions

View File

@@ -456,8 +456,8 @@ _load_preferences(void)
if (g_key_file_has_key(theme, "ui", "roster.rooms.private.char", NULL)) {
gchar* ch = g_key_file_get_string(theme, "ui", "roster.rooms.private.char", NULL);
if (ch && strlen(ch) > 0) {
prefs_set_roster_room_private_char(ch[0]);
if (ch && g_utf8_strlen(ch, 4) == 1) {
prefs_set_roster_room_private_char(ch);
g_free(ch);
}
}