Update a user's personal contact list in client applications.

 

If a user is online, you can call this function after you make changes in a user's personal contact list. All changes will be displayed in MyChat Client without restarting or reconnecting to the server.

 

Syntax

function mPersonalContactsRefresh(iUINOwner: integer): integer;

 

Parameters and return values

Parameter

Type

Value

iUINOwner

integer

user unique ID, >0;

 

Function result

0

user's personal contact list was updated for all online users;

-1

you can't use UIN = 0;

-2

user is not registered on the server.

 

Example


const
  UIN_OWNER  = 6;
var
  iResult: integer;
  sMsg: string;
begin
  iResult := mPersonalContactsRefresh(UIN_OWNER);
   
    case iResult of
       0: sMsg := 'all ok, contact list refreshed';
      -1: sMsg := 'you can''t use UIN = 0';
      -2: sMsg := 'owner uin does not exist';
     end;
        
  mLogScript(sMsg, '');  
end.


Script work result

[18:26:12] (Log "mPersonalContactsRefresh"): all ok, contact list refreshed

[18:26:12] (Run "mPersonalContactsRefresh"): Script operation time: 5 ms

[18:26:12] (Run "mPersonalContactsRefresh"): Script done successfully.

 

See also

mLogScript