mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-24 05:21:58 +00:00
Added PinnedMessage simple implementation
This commit is contained in:
parent
98d8a70572
commit
13bd813d52
@ -205,7 +205,7 @@ Loader {
|
|||||||
case Constants.messageContentType.systemMessagePrivateGroupType:
|
case Constants.messageContentType.systemMessagePrivateGroupType:
|
||||||
return privateGroupHeaderComponent
|
return privateGroupHeaderComponent
|
||||||
case Constants.messageContentType.systemMessagePinnedMessage:
|
case Constants.messageContentType.systemMessagePinnedMessage:
|
||||||
return null
|
return systemMessagePinnedMessageComponent
|
||||||
case Constants.messageContentType.gapType:
|
case Constants.messageContentType.gapType:
|
||||||
return gapComponent
|
return gapComponent
|
||||||
case Constants.messageContentType.newMessagesMarker:
|
case Constants.messageContentType.newMessagesMarker:
|
||||||
@ -376,6 +376,22 @@ Loader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: systemMessagePinnedMessageComponent
|
||||||
|
|
||||||
|
StatusBaseText {
|
||||||
|
width: parent.width - 120
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
text: qsTr("%1 pinned a message").arg(quotedMessageAuthorDetailsDisplayName)
|
||||||
|
color: Theme.palette.directColor3
|
||||||
|
font.family: Theme.palette.baseFont.name
|
||||||
|
font.pixelSize: Theme.primaryTextFontSize
|
||||||
|
textFormat: Text.RichText
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
topPadding: root.prevMessageIndex === 1 ? Style.current.bigPadding : 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: messageComponent
|
id: messageComponent
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user