How does さっきまで = "as before" in さっきまでと同じ部屋


As the title explains, how does さっきまでと in

> さっきまでと同じ部屋 .

mean "as before" in English?

(I know that all together from the context of the sentences that come before
and after さっきまでと同じ部屋 that the sentence roughly translates to "[It was/is the]
same room as before." but I don't know where the "before" comes from).




I think さっきまで means' just a while ago/Until just now/just until now. '

> **さっきまで** 家で寝ていました。  
>  I was sleeping at home just until now.
>
> **さっきまで** は泣いてたけど、今は元気です。  
>  Until just now, I had been crying but now I'm fine.
>
> **さっきま** でと同じ部屋  
>  [It was/is the] same room just a while ago.

