replyEntry method

Future<int> replyEntry(
  1. String shortLink,
  2. String replyText,
  3. String ppShortLink,
  4. Uint8List attachement,
  5. String attachmentType,
  6. int _xxHash,
)

Implementation

Future<int> replyEntry(String shortLink, String replyText, String ppShortLink,
    Uint8List attachement, String attachmentType, int _xxHash) async {
  if (homeSite == null) return -1;
  return homeSite!
      .newReplyToQueue(replyText, shortLink, ppShortLink, attachement,
          attachmentType, nick, avatar, _xxHash)
      .then((value) {
    //if (value > -1) {
    _tbsCache.remove(shortLink);
    //}
    return value;
  });

  /*ModeratorEntry? target = findModeratorEntryByShortLink(shortLink);
  if (target == null) return -1;
  final surl = target.siteUrl.isNotEmpty ? target.siteUrl : _homeSite;

  return _sites[surl]!
      .newReplyToQueue(replyText, target.shortLink, ppShortLink, attachement,
          attachmentType, nick, avatar, _xxHash)
      .then((value) {
    if (value > -1) {
      _tbsCache.remove(shortLink);
    }
    return value;
  });*/
}