Add support for profile fields
This is client support for MSC4311, which allows us to (finally) set and read custom profile fields. I think we should take the approach of only allowing a small subset, so in line with that I added timezone and pronouns to the account editor. These settings are hidden or disabled depending of it's supported or allowed on your server. Fixes #661
This commit is contained in:
@@ -22,6 +22,7 @@ target_sources(LibNeoChat PRIVATE
|
||||
texthandler.cpp
|
||||
urlhelper.cpp
|
||||
utils.cpp
|
||||
profilefieldshelper.cpp
|
||||
enums/messagecomponenttype.h
|
||||
enums/messagetype.h
|
||||
enums/powerlevel.cpp
|
||||
@@ -32,6 +33,7 @@ target_sources(LibNeoChat PRIVATE
|
||||
events/imagepackevent.cpp
|
||||
events/pollevent.cpp
|
||||
jobs/neochatgetcommonroomsjob.cpp
|
||||
jobs/neochatprofilefieldjobs.cpp
|
||||
models/actionsmodel.cpp
|
||||
models/completionmodel.cpp
|
||||
models/completionproxymodel.cpp
|
||||
@@ -44,6 +46,8 @@ target_sources(LibNeoChat PRIVATE
|
||||
models/stickermodel.cpp
|
||||
models/userfiltermodel.cpp
|
||||
models/userlistmodel.cpp
|
||||
models/timezonemodel.cpp
|
||||
models/timezonemodel.h
|
||||
)
|
||||
|
||||
ecm_add_qml_module(LibNeoChat GENERATE_PLUGIN_SOURCE
|
||||
|
||||
Reference in New Issue
Block a user