diff options
| author | Kevin Smith <git@kismith.co.uk> | 2010-02-16 09:05:37 (GMT) | 
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2010-02-17 08:05:08 (GMT) | 
| commit | 5a334fd9b676564a8915baad312d92bd86358eec (patch) | |
| tree | aaecbbccd9cddcb843c126b8c022f1d1e667efde /Swiften/Chat/ChatStateNotifier.cpp | |
| parent | 231c2cb6d00061e70860626467107f4c63f359a0 (diff) | |
| download | swift-contrib-5a334fd9b676564a8915baad312d92bd86358eec.zip swift-contrib-5a334fd9b676564a8915baad312d92bd86358eec.tar.bz2  | |
Preliminary Chat State Notifications support.
Only covers Active and Composing (Which is very possibly all we care about).
Diffstat (limited to 'Swiften/Chat/ChatStateNotifier.cpp')
| -rw-r--r-- | Swiften/Chat/ChatStateNotifier.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Chat/ChatStateNotifier.cpp b/Swiften/Chat/ChatStateNotifier.cpp index 432f708..7c6560f 100644 --- a/Swiften/Chat/ChatStateNotifier.cpp +++ b/Swiften/Chat/ChatStateNotifier.cpp @@ -16,7 +16,7 @@ void ChatStateNotifier::setContactHas85Caps(bool hasCaps) {  void ChatStateNotifier::setUserIsTyping() {  	if (contactShouldReceiveStates() && !userIsTyping_) {  		userIsTyping_ = true; -		onChatStateChanged(Composing); +		onChatStateChanged(ChatState::Composing);  	}  } @@ -27,7 +27,7 @@ void ChatStateNotifier::userSentMessage() {  void ChatStateNotifier::userCancelledNewMessage() {  	if (userIsTyping_) {  		userIsTyping_ = false; -		onChatStateChanged(Active); +		onChatStateChanged(ChatState::Active);  	}  }  | 
 Swift