| 1030 | } else if ((!strcmp(info, "STATUS DIALOG") && !sd->groupchat_with) || (!strcmp(info, "ACTIVITY_TIMESTAMP"))) { |
| 1031 | skype_printf(ic, "GET CHAT %s RECENTCHATMESSAGES\n", id); |
| 1032 | skype_printf(ic, "ALTER CHAT %s CLEARRECENTMESSAGES\n", id); |
| 1033 | } else if (!strncmp(info, "RECENTCHATMESSAGES ", 19)) { |
| 1034 | info += 19; |
| 1035 | char **messages = g_strsplit(info, ", ", 0); |
| 1036 | int i; |
| 1037 | for (i = 0; messages[i]; i++) { |
| 1038 | skype_printf(ic, "GET CHATMESSAGE %s FROM_HANDLE\n", messages[i]); |
| 1039 | skype_printf(ic, "GET CHATMESSAGE %s BODY\n", messages[i]); |
| 1040 | skype_printf(ic, "GET CHATMESSAGE %s TYPE\n", messages[i]); |
| 1041 | skype_printf(ic, "GET CHATMESSAGE %s CHATNAME\n", messages[i]); |
| 1042 | skype_printf(ic, "SET CHATMESSAGE %s SEEN\n", messages[i]); |
| 1043 | } |
| 1044 | g_strfreev(messages); |