What's "just" mean here? Is it necessary to be added there?

Native speaker’s answer
Rebecca
The function of "just" in this sentence gives us more context to the time of the president's election! So for that reason, it is considered necessary. Otherwise, we wouldn't know when the president was elected. Here, "just" means very recently or in the immediate past. Ex: The cake just finished baking. Would you like some? Ex: I just came back from the shops.