From 10959bf8d4b034173b818e86ca2ed3530e29df78 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 10 Feb 2019 23:31:44 +0100 Subject: Manage new message --- contactWind.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'contactWind.c') diff --git a/contactWind.c b/contactWind.c index fee0ffd..d353a43 100644 --- a/contactWind.c +++ b/contactWind.c @@ -20,7 +20,6 @@ int showName = 1; contact* getContactSelected(void) { return contactListSelection+contactList; } - void selectNextContact(void) { if( contactListSelection < nbContacts - 1) contactListSelection++; @@ -34,7 +33,6 @@ void selectPreviousContact(void) { if( contactListSelection > 0) contactListSelection--; } - void clearContactListW(void) { for(int i = firstConctactShow; i < h_menuContact && i < nbContacts; i++) { move(y_menuContact+i,x_menuContact); @@ -56,7 +54,7 @@ void showLineContactW(contact* c, int x, int y, int i, char* tmp) { sms* lastSMS = &c->conversation->listSMS[c->conversation->nbSMS-1]; struct tm* dateOut = localtime(&lastSMS->outDate); - hasNewMessage = lastSMS->state; + hasNewMessage = lastSMS->state == SMS_UNREAD; isLastToRespond = !lastSMS->in_out; nbMessage = c->conversation->nbSMS; @@ -108,8 +106,6 @@ void showLineContactW(contact* c, int x, int y, int i, char* tmp) { move(y,x + w_menuContact - 8 - r ); printw("✉️"); } - - y++; attrset(0 | A_NORMAL); } -- cgit v1.2.3