Removed chat states from chat_session module, WIP

This commit is contained in:
James Booth
2015-01-08 00:57:25 +00:00
parent 8bbf126e83
commit 5e7d2f5f91
10 changed files with 223 additions and 398 deletions

21
TODO_STATES Normal file
View File

@@ -0,0 +1,21 @@
Chat sessions
Start (if not already started):
When message received from fulljid
When active, composing, paused or inactive chat state received from fulljid
End:
When message received from a different fulljid (start new session)
When active, composing, paused or inactive received from different fulljid (start new session)
When any presence received from any resource
When gone received from fulljid
When window closed
When gone sent
Chat states
Active - focus chat window, or message send
Composing - typing in chat session (window)
Paused - no typing for 30 seconds
Inactive - unfocus chat window, or after 2 mins
Gone - close chat window, or after 10 mins