Skip to content

Commit

Permalink
fix: Fixing bug with Viber Service channel (#323)
Browse files Browse the repository at this point in the history
* Fixing bug with Viber Service channel
  • Loading branch information
superchilled authored Feb 18, 2025
1 parent 58e55c3 commit 5d07837
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 7.29.1

* Fixes a bug with the Viber Service Messages API channel. [#323](https://github.com/Vonage/vonage-ruby-sdk/pull/323)

# 7.29.0

* Adds `max_bitrate` as an option to the `Video::Archives#start` method. [#321](https://github.com/Vonage/vonage-ruby-sdk/pull/321)
Expand Down
2 changes: 1 addition & 1 deletion lib/vonage/messaging/channels/viber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(attributes = {})
private

def build
data[:channel] = ' viber_service'
data[:channel] = 'viber_service'
super
end

Expand Down
2 changes: 1 addition & 1 deletion lib/vonage/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# typed: strong

module Vonage
VERSION = '7.29.0'
VERSION = '7.29.1'
end
2 changes: 1 addition & 1 deletion test/vonage/messaging/channels/viber_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def test_viber_initialize
viber = Vonage::Messaging::Channels::Viber.new(type: 'text', message: 'Hello world!')

assert_kind_of Vonage::Messaging::Channels::Viber, viber
assert_equal viber.data, { channel: ' viber_service', message_type: 'text', text: 'Hello world!' }
assert_equal viber.data, { channel: 'viber_service', message_type: 'text', text: 'Hello world!' }
end

def test_with_valid_type_text_specified
Expand Down

0 comments on commit 5d07837

Please sign in to comment.