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); } }
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); */ }