mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 13:08:08 +00:00
fix automatic displayname guess algo.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@658 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
c292aef10a
commit
4ba253c564
1 changed files with 3 additions and 2 deletions
|
|
@ -37,9 +37,10 @@ static void guess_display_name(osip_from_t *from){
|
|||
bool_t begin=TRUE;
|
||||
bool_t surname=0;
|
||||
for(it=from->url->username;*it!='\0';++it){
|
||||
if (begin)
|
||||
if (begin){
|
||||
*wptr=toupper(*it);
|
||||
else if (*it=='.'){
|
||||
begin=FALSE;
|
||||
}else if (*it=='.'){
|
||||
if (surname) break;
|
||||
*wptr=' ';
|
||||
begin=TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue