Fix errors caused by Tox gem changes
This commit is contained in:
parent
2816e3823e
commit
7533f6994e
2 changed files with 3 additions and 3 deletions
|
@ -13,4 +13,4 @@ SAVEDATA_FILENAME = File.expand_path '../savedata', __dir__
|
||||||
tox_options = Tox::Options.new
|
tox_options = Tox::Options.new
|
||||||
tox_options.savedata = File.binread SAVEDATA_FILENAME
|
tox_options.savedata = File.binread SAVEDATA_FILENAME
|
||||||
tox_client = Tox::Client.new tox_options
|
tox_client = Tox::Client.new tox_options
|
||||||
puts tox_client.address.to_hex
|
puts tox_client.address
|
||||||
|
|
|
@ -39,7 +39,7 @@ module Reducers
|
||||||
friends: action.friends.map do |friend|
|
friends: action.friends.map do |friend|
|
||||||
[
|
[
|
||||||
friend.number,
|
friend.number,
|
||||||
public_key: friend.public_key.to_hex.freeze,
|
public_key: friend.public_key.to_s,
|
||||||
name: friend.name.freeze,
|
name: friend.name.freeze,
|
||||||
status: friend.status,
|
status: friend.status,
|
||||||
status_message: friend.status_message.freeze,
|
status_message: friend.status_message.freeze,
|
||||||
|
@ -59,7 +59,7 @@ module Reducers
|
||||||
|
|
||||||
friends: state[:friends].merge(
|
friends: state[:friends].merge(
|
||||||
action.friend.number => {
|
action.friend.number => {
|
||||||
public_key: action.friend.public_key.to_hex.freeze,
|
public_key: action.friend.public_key.to_s,
|
||||||
name: action.friend.name.freeze,
|
name: action.friend.name.freeze,
|
||||||
status: action.friend.status,
|
status: action.friend.status,
|
||||||
status_message: action.friend.status_message.freeze,
|
status_message: action.friend.status_message.freeze,
|
||||||
|
|
Reference in a new issue