about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-12-19 23:40:21 +0000
committerJames Booth <boothj5@gmail.com>2012-12-19 23:40:21 +0000
commitbcf0628a0f67bf1316e9d21eb411c00e5a18f1e2 (patch)
treeb8552f79fa5df5761da0834602cf0f9b627a139a
parentd669866aacfdb90baf41b7892e400847b8ca24f8 (diff)
downloadprofani-tty-bcf0628a0f67bf1316e9d21eb411c00e5a18f1e2.tar.gz
Only set state to </paused> when was previously </composing>
-rw-r--r--src/chat_session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chat_session.c b/src/chat_session.c
index 0b65c237..3cd50404 100644
--- a/src/chat_session.c
+++ b/src/chat_session.c
@@ -129,8 +129,8 @@ chat_session_no_activity(const char * const recipient)
 
                 if (session->state == CHAT_STATE_COMPOSING) {
                     session->sent = FALSE;
+                    session->state = CHAT_STATE_PAUSED;
                 }
-                session->state = CHAT_STATE_PAUSED;
             }
         }
     }