Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3539045
D12939.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12939.diff
View Options
diff --git a/services/tunnelbroker/src/websockets/session.rs b/services/tunnelbroker/src/websockets/session.rs
--- a/services/tunnelbroker/src/websockets/session.rs
+++ b/services/tunnelbroker/src/websockets/session.rs
@@ -293,6 +293,18 @@
)
.await?;
}
+ MessageToTunnelbroker::SetDeviceTokenWithPlatform(
+ token_with_platform,
+ ) => {
+ self
+ .db_client
+ .set_device_token(
+ &self.device_info.device_id,
+ &token_with_platform.device_token,
+ Some(token_with_platform.platform.clone()),
+ )
+ .await?;
+ }
}
Ok(())
diff --git a/shared/tunnelbroker_messages/src/messages/mod.rs b/shared/tunnelbroker_messages/src/messages/mod.rs
--- a/shared/tunnelbroker_messages/src/messages/mod.rs
+++ b/shared/tunnelbroker_messages/src/messages/mod.rs
@@ -78,5 +78,6 @@
#[derive(Serialize, Deserialize, Debug)]
#[serde(untagged)]
pub enum MessageToTunnelbroker {
+ SetDeviceTokenWithPlatform(SetDeviceTokenWithPlatform),
SetDeviceToken(SetDeviceToken),
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 12:03 AM (10 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2709746
Default Alt Text
D12939.diff (1 KB)
Attached To
Mode
D12939: [Tunnelbroker] handle `SetDeviceTokenWithPlatform` message
Attached
Detach File
Event Timeline
Log In to Comment