Screenshots and downloads are now only retrieved once from the team server when the user selects them in the client for preview, which leads to faster start-up times and less blocking UI.
This commit is contained in:
@@ -70,9 +70,9 @@ proc sendRemoveLoot*(connection: WsConnection, lootId: string) =
|
||||
)
|
||||
connection.ws.sendEvent(event, connection.sessionKey)
|
||||
|
||||
proc sendDownloadLoot*(connection: WsConnection, lootId: string) =
|
||||
proc sendGetLoot*(connection: WsConnection, lootId: string) =
|
||||
let event = Event(
|
||||
eventType: CLIENT_LOOT_SYNC,
|
||||
eventType: CLIENT_LOOT_GET,
|
||||
timestamp: now().toTime().toUnix(),
|
||||
data: %*{
|
||||
"lootId": lootId
|
||||
|
||||
Reference in New Issue
Block a user