Skip to content

Commit

Permalink
Merge pull request #67 from southbridgeio/remove-check-encryption-key
Browse files Browse the repository at this point in the history
remove check encryption key
  • Loading branch information
nevrfl committed Sep 5, 2024
2 parents e4708c1 + c253fb7 commit 12388c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.3 / 2024-08-29

* Remove the verification encryption key and unnecessary configurations

### 3.0.2 / 2020-06-29

* Rescue exceptions in update manager thread
Expand Down
2 changes: 0 additions & 2 deletions lib/tdlib-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ def root_path
setting :device_model, 'Ruby TD client'
setting :system_version, 'Unknown'
setting :application_version, '1.0'
setting :enable_storage_optimizer, true
setting :ignore_file_names, false
end
end

Expand Down
11 changes: 4 additions & 7 deletions lib/tdlib/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,10 @@ def connect
on TD::Types::Update::AuthorizationState do |update|
case update.authorization_state
when TD::Types::AuthorizationState::WaitTdlibParameters
set_tdlib_parameters(parameters: TD::Types::TdlibParameters.new(**@config))
when TD::Types::AuthorizationState::WaitEncryptionKey
check_database_encryption_key(encryption_key: TD.config.encryption_key).then do
@ready_condition_mutex.synchronize do
@ready = true
@ready_condition.broadcast
end
set_tdlib_parameters(**@config)
@ready_condition_mutex.synchronize do
@ready = true
@ready_condition.broadcast
end
else
# do nothing
Expand Down
2 changes: 1 addition & 1 deletion lib/tdlib/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module TD
# tdlib-ruby version
VERSION = "3.0.2"
VERSION = "3.0.3"
end

0 comments on commit 12388c8

Please sign in to comment.