aboutsummaryrefslogtreecommitdiff
path: root/contactWind.c
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-02-10 23:31:44 +0100
committerache <ache@ache.one>2019-02-10 23:31:44 +0100
commit10959bf8d4b034173b818e86ca2ed3530e29df78 (patch)
tree0a33a85ca27be90191814a4273c3f46d9c8dd855 /contactWind.c
parentRefesh from inotify (fuck yeah !) (diff)
Manage new message
Diffstat (limited to 'contactWind.c')
-rw-r--r--contactWind.c6
1 files changed, 1 insertions, 5 deletions
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);
}