Set the time of received chat messages from the content of this message instead of the current time.

This commit is contained in:
Ghislain MARY 2013-04-11 14:36:12 +02:00
parent 49baee893d
commit bc9569c4b6

View file

@ -578,7 +578,7 @@ static void linphone_iphone_registration_state(LinphoneCore *lc, LinphoneProxyCo
[chat setMessage:[NSString stringWithUTF8String:linphone_chat_message_get_text(msg)]];
}
[chat setDirection:[NSNumber numberWithInt:1]];
[chat setTime:[NSDate date]];
[chat setTime:[NSDate dateWithTimeIntervalSince1970:linphone_chat_message_get_time(msg)]];
[chat setRead:[NSNumber numberWithInt:0]];
[chat create];