mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-24 22:56:02 +00:00
Update names in subscribe portion of sync protocol
This commit is contained in:
@@ -4,7 +4,7 @@ expression: "subscribe_response.intern_and_redact(&mut redactions, ())"
|
||||
---
|
||||
messageCursor: 1
|
||||
messages:
|
||||
- addedInstances:
|
||||
- added:
|
||||
id-3:
|
||||
Children: []
|
||||
ClassName: Folder
|
||||
@@ -14,6 +14,6 @@ messages:
|
||||
Name: my-new-folder
|
||||
Parent: id-2
|
||||
Properties: {}
|
||||
removedInstances: []
|
||||
updatedInstances: []
|
||||
removed: []
|
||||
updated: []
|
||||
sessionId: id-1
|
||||
|
||||
@@ -4,7 +4,7 @@ expression: "subscribe_response.intern_and_redact(&mut redactions, ())"
|
||||
---
|
||||
messageCursor: 1
|
||||
messages:
|
||||
- addedInstances:
|
||||
- added:
|
||||
id-10:
|
||||
Children: []
|
||||
ClassName: StringValue
|
||||
@@ -144,6 +144,6 @@ messages:
|
||||
Value:
|
||||
Type: String
|
||||
Value: "File #5"
|
||||
removedInstances: []
|
||||
updatedInstances: []
|
||||
removed: []
|
||||
updated: []
|
||||
sessionId: id-1
|
||||
|
||||
@@ -4,9 +4,9 @@ expression: "subscribe_response.intern_and_redact(&mut redactions, ())"
|
||||
---
|
||||
messageCursor: 1
|
||||
messages:
|
||||
- addedInstances: {}
|
||||
removedInstances: []
|
||||
updatedInstances:
|
||||
- added: {}
|
||||
removed: []
|
||||
updated:
|
||||
- changedClassName: ~
|
||||
changedMetadata: ~
|
||||
changedName: ~
|
||||
|
||||
@@ -61,8 +61,8 @@ impl<'a> Internable<&'a HashMap<RbxId, Instance<'_>>> for Instance<'a> {
|
||||
impl Internable<()> for SubscribeResponse<'_> {
|
||||
fn intern(&self, redactions: &mut RedactionMap, _extra: ()) {
|
||||
for message in &self.messages {
|
||||
intern_instance_updates(redactions, &message.updated_instances);
|
||||
intern_instance_additions(redactions, &message.added_instances);
|
||||
intern_instance_updates(redactions, &message.updated);
|
||||
intern_instance_additions(redactions, &message.added);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user