Permalink
Browse files

Add stop typing on message.

  • Loading branch information...
1 parent 35b49d5 commit 27755c22ae4ceee738506aad1ade78c562106b32 @meh committed Apr 16, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/torchat/session.rb
View
@@ -162,6 +162,12 @@ def initialize (config)
fire :typing, buddy, :stop
end
+ on :message do |packet, buddy|
+ buddy.not_typing!
+
+ fire :typing, buddy, :stop
+ end
+
yield self if block_given?
end

0 comments on commit 27755c2

Please sign in to comment.