Skip to content

Commit

Permalink
Merge pull request #177 from singpolyma/no-default-chat-state
Browse files Browse the repository at this point in the history
Default messages to no chat state
  • Loading branch information
bklang authored Nov 10, 2022
2 parents 69a0b67 + 83ce16b commit 03f9cda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# [develop](https://github.com/adhearsion/blather/compare/master...develop)
* No default [chat state](https://xmpp.org/extensions/xep-0085.html) on new messages, if you want one you need to set it. Blather version 2.0 and prior set this value to `active`
* jabber:client and jabber:component:accept namespaces are no longer erased when parsing, so if you manually select nodes assuming there will be no namespace for these, you need to update
* Breaking change (for release in v3.0.0): Falsy handler return value no longer causes passing to the next handler. Use `pass` explicitly for that.
* Breaking change (for release in v3.0.0): Blather::Client uses EM.defer instead of sucker_punch for threadpool, or else no threads when passed async: true
Expand Down
1 change: 0 additions & 1 deletion lib/blather/stanza/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ def self.new(to = nil, body = nil, type = :chat)
node.to = to
node.type = type
node.body = body
node.chat_state = :active if [:chat, :groupchat].include?(type)
node
end

Expand Down

0 comments on commit 03f9cda

Please sign in to comment.