summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fe1f627)
chnage time for time change
for(j=0;j<12;j++) { \r
if(strcmp(tmp2,months[j])==0) ret.tm_mon=j; \r
}\r
for(j=0;j<12;j++) { \r
if(strcmp(tmp2,months[j])==0) ret.tm_mon=j; \r
}\r
}\r
new_message->time=argv[5]!=NULL ? mktime(&ret) : time(NULL);\r
new_message->state=atoi(argv[7]);\r
}\r
new_message->time=argv[5]!=NULL ? mktime(&ret) : time(NULL);\r
new_message->state=atoi(argv[7]);\r
for(j=0;j<12;j++) { \r
if(strcmp(tmp2,months[j])==0) ret.tm_mon=j; \r
}\r
for(j=0;j<12;j++) { \r
if(strcmp(tmp2,months[j])==0) ret.tm_mon=j; \r
}\r
}else ms_warning("No date header in SIP MESSAGE, we don't know when it was sent.");\r
\r
content_type= osip_message_get_content_type(ev->request);\r
}else ms_warning("No date header in SIP MESSAGE, we don't know when it was sent.");\r
\r
content_type= osip_message_get_content_type(ev->request);\r
case LinphoneChatMessageStateDelivered:
{
tnow=time(NULL);
case LinphoneChatMessageStateDelivered:
{
tnow=time(NULL);
tnow_day=tm->tm_yday;
tnow_year=tm->tm_year;
tnow_day=tm->tm_yday;
tnow_year=tm->tm_year;
if(tnow_day != tm->tm_yday || (tnow_day == tm->tm_yday && tnow_year != tm->tm_year)) {
strftime(buf,80,"%a %x, %H:%M",tm);
} else {
if(tnow_day != tm->tm_yday || (tnow_day == tm->tm_yday && tnow_year != tm->tm_year)) {
strftime(buf,80,"%a %x, %H:%M",tm);
} else {
case LinphoneChatMessageStateDelivered:
{
time_t t=time(NULL);
case LinphoneChatMessageStateDelivered:
{
time_t t=time(NULL);
- struct tm *tm=gmtime(&t);
+ struct tm *tm=localtime(&t);
char buf[80];
strftime(buf,80,"%H:%M",tm);
result=buf;
char buf[80];
strftime(buf,80,"%H:%M",tm);
result=buf;
if(w!=NULL){
char *from_chatview=(char *)g_object_get_data(G_OBJECT(friendlist),"from");
if(g_strcmp0(from,from_chatview)==0){
if(w!=NULL){
char *from_chatview=(char *)g_object_get_data(G_OBJECT(friendlist),"from");
if(g_strcmp0(from,from_chatview)==0){
+ linphone_chat_room_mark_as_read(room);
send=TRUE;
} else {
if(!linphone_gtk_friend_list_is_contact(linphone_chat_message_get_from(msg))){
send=TRUE;
} else {
if(!linphone_gtk_friend_list_is_contact(linphone_chat_message_get_from(msg))){
- //linphone_gtk_load_chatroom(room,linphone_chat_message_get_from(msg),w);
linphone_gtk_chat_add_contact(linphone_chat_message_get_from(msg));
}
send=FALSE;
linphone_gtk_chat_add_contact(linphone_chat_message_get_from(msg));
}
send=FALSE;
} else {
send=FALSE;
if(!linphone_gtk_friend_list_is_contact(linphone_chat_message_get_from(msg))){
} else {
send=FALSE;
if(!linphone_gtk_friend_list_is_contact(linphone_chat_message_get_from(msg))){
- //linphone_gtk_load_chatroom(room,linphone_chat_message_get_from(msg),w);
linphone_gtk_chat_add_contact(linphone_chat_message_get_from(msg));
}
w=linphone_gtk_init_chatroom(room,linphone_chat_message_get_from(msg));
linphone_gtk_chat_add_contact(linphone_chat_message_get_from(msg));
}
w=linphone_gtk_init_chatroom(room,linphone_chat_message_get_from(msg));
g_object_set_data(G_OBJECT(friendlist),"from",from);
}
get_display_name(linphone_chat_message_get_from(msg));
g_object_set_data(G_OBJECT(friendlist),"from",from);
}
get_display_name(linphone_chat_message_get_from(msg));
#ifdef HAVE_GTK_OSXs
/* Notified when a new message is sent */
linphone_gtk_status_icon_set_blinking(TRUE);
#ifdef HAVE_GTK_OSXs
/* Notified when a new message is sent */
linphone_gtk_status_icon_set_blinking(TRUE);
} else {
linphone_gtk_show_friends();
}
} else {
linphone_gtk_show_friends();
}
- //linphone_gtk_update_chat_picture();