summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-06 21:30:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-06 21:30:50 +0300
commit3f82dffa4a2e87f9af80a52786eccceb99a83b70 (patch)
tree5e9dc591b460aa346b56d342d401cf1443ed5a30 /protocols
parentecd56d476d8b0e3a8700e3a27a67f4c1e579f176 (diff)
fixes #3095 (Групировка цифр и букв в ключе OMEMO)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/JabberG/src/jabber_userinfo.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_userinfo.cpp b/protocols/JabberG/src/jabber_userinfo.cpp
index 5fe597a2f8..63b4100370 100644
--- a/protocols/JabberG/src/jabber_userinfo.cpp
+++ b/protocols/JabberG/src/jabber_userinfo.cpp
@@ -791,8 +791,15 @@ static void AddListItem(HWND hwndList, const CMStringA &pszStr1, const wchar_t *
ListView_SetItemText(hwndList, idx, 1, (wchar_t *)pszStr2);
- _A2T tmp(pszStr3.c_str());
- ListView_SetItemText(hwndList, idx, 2, (wchar_t *)tmp.get());
+ int i = 0;
+ CMStringW buf;
+ for (const char *p = pszStr3; *p; p++) {
+ buf.AppendChar(*p);
+ if (++i % 8 == 0)
+ buf.AppendChar(' ');
+ }
+ buf.MakeUpper();
+ ListView_SetItemText(hwndList, idx, 2, buf.GetBuffer());
}
INT_PTR CALLBACK JabberUserOmemoDlgProc(HWND hwndDlg, UINT msg, WPARAM, LPARAM lParam)