Dedicated suffix for 'Message' files #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, a
Messagefile can have two formats:txtandyamland the file suffix depends on the format, i. e. we allow both0001.txtand0001.yamlfor aMessagewith the ID0001. This causes various issues:Chat.validate()Chat.read_dir()Solution
Introduce a new suffix (e. g.
.msg) for allMessagefiles, independent of the format. When reading those files, try one format first and in case of errors, try the other. Always use.msgwhen writing files, but add an optional parameterformattoMessage.to_file().