load


Description:

public override async SessionBase? load () throws Error

Converts this(a placeholder)int a real Session by loading it from JSON.

This method: a) Creates a new Session with chat b) Loads the JSON file into a SessionJson c) Copies messages from SessionJson into Session d) Removes itself from manager.sessions and fires remove_chat signal e) Adds the new Session to manager.sessions and fires add_chat signal

Exceptions:

Error

if loading fails