accounts: add templates for announcements
you can now save announcements as templates, and then use them later by hovering over the "Announce" button, as well as delete them.
This commit is contained in:
@@ -359,6 +359,10 @@ func start(asDaemon, firstCall bool) {
|
||||
if err := app.storage.loadMatrixUsers(); err != nil {
|
||||
app.err.Printf("Failed to load Matrix users: %v", err)
|
||||
}
|
||||
app.storage.announcements_path = app.config.Section("files").Key("announcements").String()
|
||||
if err := app.storage.loadAnnouncements(); err != nil {
|
||||
app.err.Printf("Failed to load announcement templates: %v", err)
|
||||
}
|
||||
|
||||
app.storage.profiles_path = app.config.Section("files").Key("user_profiles").String()
|
||||
app.storage.loadProfiles()
|
||||
|
||||
Reference in New Issue
Block a user