aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/third_party_membership.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-12 19:26:34 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-12 19:26:34 +0100
commit7ac0bf044e521be4043c0b545d42323e2f9101a4 (patch)
tree92b9f527b8f6d8f59acd5163e1b6b7a5eafa634f /lib/csapi/third_party_membership.cpp
parent0990ab8121002e1613ac68558e07c74855370713 (diff)
downloadlibquotient-7ac0bf044e521be4043c0b545d42323e2f9101a4.tar.gz
libquotient-7ac0bf044e521be4043c0b545d42323e2f9101a4.zip
EventItemBase: Allow adding custom data
A new field of std::any type is added that allows clients to "annotate" any event item with arbitrary kind of data. This is mainly intended so that clients could calculate certain information about the item (e.g. special formatting depending on the event contents, or position) without having to calculate this information every time it is visualised. In case of Quaternion, the idea is to calculate the "spamminess" of the event basing on the past activity of a given user in this room - calculating it upon displaying each event is extremely heavyweight.
Diffstat (limited to 'lib/csapi/third_party_membership.cpp')
0 files changed, 0 insertions, 0 deletions