mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-11-04 09:04:04 +00:00
Show signed in user's avatar
This commit is contained in:
@@ -55,15 +55,7 @@ module W3DHubLauncher
|
||||
if result.okay?
|
||||
hash = JSON.parse(result.data)
|
||||
|
||||
MemCache[:settings].account = W3DHubLauncher::Worker::Api::Settings::Account.create(
|
||||
user_id: hash["userid"],
|
||||
username: hash["username"],
|
||||
displayname: hash["displayname"],
|
||||
avatar_uri: "",
|
||||
access_token: hash["accessToken"],
|
||||
refresh_token: hash["refreshToken"],
|
||||
access_token_expiration_time: hash["accessTokenExpiry"]
|
||||
)
|
||||
MemCache[:settings].account = W3DHubLauncher::Worker::Api::Settings::Account.new(hash)
|
||||
|
||||
Worker::Api.update_settings(MemCache[:settings]) do |settings_result|
|
||||
if settings_result.okay?
|
||||
|
||||
Reference in New Issue
Block a user