public override async Task EditComment(string thingId, string text)
{
try
{
if (string.IsNullOrWhiteSpace(thingId) || text == null)
return;
if (_settingsService.IsOnline() && (await _userService.GetUser()).Username != null)
await base.EditComment(thingId, text);
else
await _offlineService.EnqueueAction("EditComment", new Dictionary<string, string> { { "thingId", thingId }, { "text", text } });
}
catch (TaskCanceledException)
{
throw;
}
catch (Exception ex)
{
_notificationService.CreateErrorNotification(ex);
_offlineService.EnqueueAction("EditComment", new Dictionary<string, string> { { "thingId", thingId }, { "text", text } }).Start();
}
}