.IsTweetDestroyed property is not set

Mar 18, 2014 at 10:55 AM
Should I expect the .IsTweetDestroyed property to be set as soon as .Destroy() is called?

Using v 0.9.0.4, The following code always outputs false after calling Destroy() (i.e. .IsTweetDestroyed is not set) The next time I try to check it, I can't because the Tweet cannot be recovered from its Id because (presumably) it has been successfully destroyed.

When should .IsTweetDestroyed show True?
      if (theTweet != null)
      {
          if (theTweet.IsTweetPublished)
          {
              theTweet.Destroy();
              Console.WriteLine(theTweet.IsTweetDestroyed);
          }
      }
Thanks
Coordinator
Mar 18, 2014 at 2:25 PM
Hi,

I have managed to forget to test this feature and I have missed it. I will put it back today or tomorrow in 0.9.0.5.
Until then here is what you can do:
var tweetDestroyedSuccessfully = tweet.Destroy();
tweet.TweetDTO.IsTweetDestroyed = tweetDestroyedSuccessfully;
Sorry for the confusion.

Linvi
Coordinator
Mar 19, 2014 at 1:01 AM
Fixed in the latest version.

Linvi
Marked as answer by linvi on 3/18/2014 at 6:01 PM
Mar 19, 2014 at 8:50 AM
Many thanks Linvi.