Esempio n. 1
0
File: Chat.cs Progetto: 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);
     }
 }
Esempio n. 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);
             */
        }