mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-23 12:59:44 +00:00
Pascal Precht
8a2af7e264
feat(StatusChatList): introduce
profileImageFn
property
This property enables users to pass as factory function to `StatusChatList` component that determines the profile image of a given chat id. Usage: ```qml import StatusQ.Components 0.1 StatusChatList { ... profileImageFn: function (id) { // `id` is the model id of the current chat item iterator return ... // has to return a profile image url } } ``` In addition to this property, this commit also makes the component expect an optional `model.identityImage` in case it's already provided. That way, `profileImageFn` can be omitted. Closes #174
Status-desktop
Desktop client for the Status Network built with Nim and Qt
Dev Docs: https://hackmd.io/@status-desktop/B1naRjxh_/https%3A%2F%2Fhackmd.io%2F%40status-desktop%2FB1eOaf-nd
Description
Languages
QML
38.3%
JavaScript
30.1%
Nim
18.8%
Python
5.7%
C++
5.3%
Other
1.7%