You asked

Would a 50mm leica m lens still work for portraits in a small room?

Yes, a 50mm Leica M lens works well for portraits in a small room, as long as you accept that you'll often be close to your subject. The portrait guide calls the 50mm a natural, slightly tight view on full frame, and it's the lens it suggests if you only buy one for people. Its 50mm is only a classic portrait lens with some room to back away, so a small room makes it harder to stand far enough for the most flattering perspective. Expect to frame a head-and-shoulders portrait rather than a longer headshot.

Among the three Leica 50mm M lenses, the guide's pages suggest different choices:

For most small-room portraits, the Summicron-M is the balanced pick. Choose the Noctilux only if you need the light and the blur, and accept the focus demands.

Written by Claude from this site's pages.

The answer changes if

Ask next

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.