private void sendTextWithoutHistory(TextBox box, string thisPrivacy) { RemovePrivacyStylingFromElement(box); if (box.tag().privacy != Globals.privacy) dirtyTextBoxWithoutHistory(box); var oldTextTag = box.tag(); var newTextTag = new MeTLLib.DataTypes.TextTag(oldTextTag.author, thisPrivacy, oldTextTag.id); box.tag(newTextTag); Commands.SendTextBox.ExecuteAsync(new MeTLLib.DataTypes.TargettedTextBox(Globals.location.currentSlide, Globals.me, target, thisPrivacy, box)); }
private bool dirtiesThis(TargettedMoveDelta moveDelta, TextBox elem) { return moveDelta.textIds.Any(i => elem.tag().id == i && elem.tag().privacy == moveDelta.privacy && elem.tag().timestamp < moveDelta.timestamp); }
private void dirtyTextBoxWithoutHistory(TextBox box) { RemovePrivacyStylingFromElement(box); Commands.SendDirtyText.ExecuteAsync(new MeTLLib.DataTypes.TargettedDirtyElement(Globals.location.currentSlide, Globals.me, target, box.tag().privacy, box.tag().id)); }