From 62bb4e49d4066e7505ee784b404c676906a1ca09 Mon Sep 17 00:00:00 2001 From: VMiklos Date: Mon, 20 Aug 2007 20:50:25 +0200 Subject: mark received messages as read so that skype won't say there are unread messages --- skype/README | 8 ++++---- skype/skype.c | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/skype/README b/skype/README index aa32b48e..188ba933 100644 --- a/skype/README +++ b/skype/README @@ -80,13 +80,13 @@ NOTE: the option is not used currently. - Receiving away status changes -- skyped (the tcp daemon that is a gateway between Skype and tcp) +- `skyped` (the tcp daemon that is a gateway between Skype and tcp) -- Error handling when skyped is not running and when it exists +- Error handling when `skyped` is not running and when it exits -== What needs to be done (aka. TODO) +- Marking received messages as seen so that Skype won't say there are unread messages -- mark received messages as read so that skype won't say there are unread messages +== What needs to be done (aka. TODO) - Away status changes (send) diff --git a/skype/skype.c b/skype/skype.c index e1837063..18849fca 100644 --- a/skype/skype.c +++ b/skype/skype.c @@ -136,6 +136,8 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c skype_write( ic, buf, strlen( buf ) ); g_snprintf(buf, 1024, "GET CHATMESSAGE %s BODY\n", id); skype_write( ic, buf, strlen( buf ) ); + g_snprintf(buf, 1024, "SET CHATMESSAGE %s SEEN\n", id); + skype_write( ic, buf, strlen( buf ) ); } else if(!strncmp(info, "FROM_HANDLE ", 12)) { -- cgit v1.2.3