mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Set a temporary time when creating a chat message
This commit is contained in:
parent
caa0ce6109
commit
982c96847d
2 changed files with 3 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ void _linphone_chat_room_send_message(LinphoneChatRoom *cr, LinphoneChatMessage
|
|||
LinphoneCall *call;
|
||||
char *content_type;
|
||||
const char *identity = NULL;
|
||||
msg->time = time(NULL);
|
||||
msg->time = ms_time(0);
|
||||
if (lp_config_get_int(cr->lc->config, "sip", "chat_use_call_dialogs", 0) != 0) {
|
||||
if ((call = linphone_core_get_call_by_remote_address(cr->lc, cr->peer)) != NULL) {
|
||||
if (call->state == LinphoneCallConnected || call->state == LinphoneCallStreamsRunning ||
|
||||
|
|
@ -690,6 +690,7 @@ LinphoneChatMessage *linphone_chat_room_create_message(LinphoneChatRoom *cr, con
|
|||
msg->content_type = NULL; /* this property is used only when transfering file */
|
||||
msg->file_transfer_information = NULL; /* this property is used only when transfering file */
|
||||
msg->http_request = NULL;
|
||||
msg->time = ms_time(0);
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -569,5 +569,6 @@ LinphoneChatMessage *linphone_chat_room_create_file_transfer_message(LinphoneCha
|
|||
msg->content_type = NULL;
|
||||
/* this will store the http request during file upload to the server */
|
||||
msg->http_request = NULL;
|
||||
msg->time = ms_time(0);
|
||||
return msg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue