示例#1
0
        private async Task <bool> SendChats(string _)
        {
            // TODO Think about adding paging here for the chats. For instance,
            // send the ones from the last 30 minutes and add a "load more" link on top.

            _log.LogTrace("-> SendChats(string)");

            if (CurrentSession.Chats == null)
            {
                CurrentSession.Chats = new List <Chat>();
            }

            if (CurrentSession.Chats.Count == 0)
            {
                return(true);
            }

            return(await ChatProxy.SendChats(
                       CurrentSession.Chats,
                       CurrentSession.SessionName,
                       CurrentSession.SessionId,
                       _log));
        }