예제 #1
0
파일: Chat.cs 프로젝트: mistay/yuck
 private void MediadownloadCompletedCallback(MatrixMediaRequest matrixMediaRequest, Image image)
 {
     if (matrixMediaRequest.roomID == MatrixRoom.roomID)
     {
         // this image is intended for this chat
         processIncomingChatMessageImage(matrixMediaRequest.sender, matrixMediaRequest.filename, image);
     }
 }
예제 #2
0
        private void RoomAvatarDownloadedCallback(MatrixMediaRequest matrixMediaRequest, Image image)
        {
            foreach (MatrixRoom matrixRoom in matrixRooms)
            {
                if (matrixRoom.roomID == matrixMediaRequest.roomID)
                {
                    //found
                    matrixRoom.avatar = image;
                    break;
                }
            }

            il.Images.Add(matrixMediaRequest.roomID, image);
            refreshlstRoomsUpdate();

            /*
             * Console.WriteLine("avatar downloaded: " + matrixMediaRequest.roomID);
             * il.Images.Add(matrixMediaRequest.roomID, image);
             * lvRooms.Items.Add(matrixMediaRequest.roomID, matrixMediaRequest.roomID);
             */
        }