Example #1
0
        public void Handle(StickerItemTapEvent message)
        {
            if (!this._isCurrentPage)
            {
                return;
            }
            bool fromGroupChecked = this.ucNewMessage.FromGroupChecked;

            if (this._addingComment)
            {
                return;
            }
            this._addingComment = true;
            this.PostCommentsVM.PostComment("", this._replyToCid, this._replyToUid, fromGroupChecked, new List <IOutboundAttachment>(), (Action <bool>)(result =>
            {
                this._addingComment = false;
                Execute.ExecuteOnUIThread((Action)(() =>
                {
                    if (!result)
                    {
                        ExtendedMessageBox.ShowSafe(CommonResources.Error);
                    }
                    else
                    {
                        this.ScrollToBottom();
                        this.ResetReplyFields();
                    }
                }));
            }), message.StickerItem, message.Referrer);
        }
Example #2
0
 public void Handle(StickerItemTapEvent message)
 {
     if (!this._isCurrentPage)
     {
         return;
     }
     this.ucCommentGeneric.AddComment(new List <IOutboundAttachment>(), (Action <bool>)(res => {}), message.StickerItem, message.Referrer);
 }
 public void Handle(StickerItemTapEvent message)
 {
     if (!this._isCurrentPage || this._isAddingComment)
     {
         return;
     }
     this._isAddingComment = true;
     this.GroupDiscussionVM.AddComment("", this._commentVM.OutboundAttachments.ToList <IOutboundAttachment>(), (Action <bool>)(res =>
     {
         this._isAddingComment = false;
         Execute.ExecuteOnUIThread((Action)(() =>
         {
             if (res)
             {
                 return;
             }
             ExtendedMessageBox.ShowSafe(CommonResources.Error);
         }));
     }), message.StickerItem, this.newCommentUC.FromGroupChecked, message.Referrer);
 }
Example #4
0
 public void Handle(StickerItemTapEvent message)
 {
     this.InsertRecentSticker(message.StickerItem.StickerId);
 }