Skip to content

Commit 12388c8

Browse files
committed
Merge pull request #67 from southbridgeio/remove-check-encryption-key
remove check encryption key
2 parents e4708c1 + c253fb7 commit 12388c8

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.3 / 2024-08-29
2+
3+
* Remove the verification encryption key and unnecessary configurations
4+
15
### 3.0.2 / 2020-06-29
26

37
* Rescue exceptions in update manager thread

lib/tdlib-ruby.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ def root_path
2929
setting :device_model, 'Ruby TD client'
3030
setting :system_version, 'Unknown'
3131
setting :application_version, '1.0'
32-
setting :enable_storage_optimizer, true
33-
setting :ignore_file_names, false
3432
end
3533
end
3634

lib/tdlib/client.rb

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,10 @@ def connect
3636
on TD::Types::Update::AuthorizationState do |update|
3737
case update.authorization_state
3838
when TD::Types::AuthorizationState::WaitTdlibParameters
39-
set_tdlib_parameters(parameters: TD::Types::TdlibParameters.new(**@config))
40-
when TD::Types::AuthorizationState::WaitEncryptionKey
41-
check_database_encryption_key(encryption_key: TD.config.encryption_key).then do
42-
@ready_condition_mutex.synchronize do
43-
@ready = true
44-
@ready_condition.broadcast
45-
end
39+
set_tdlib_parameters(**@config)
40+
@ready_condition_mutex.synchronize do
41+
@ready = true
42+
@ready_condition.broadcast
4643
end
4744
else
4845
# do nothing

lib/tdlib/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module TD
22
# tdlib-ruby version
3-
VERSION = "3.0.2"
3+
VERSION = "3.0.3"
44
end

0 commit comments

Comments
 (0)