Update API

This commit is contained in:
Ilya Laktyushin
2021-10-06 01:31:16 +04:00
parent cc7ad065f9
commit 54de3e7b9f
8 changed files with 46 additions and 14 deletions

View File

@@ -257,6 +257,8 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
}
case .joinedByLink:
attributedString = addAttributesToStringWithRanges(strings.Notification_JoinedGroupByLink(authorName)._tuple, body: bodyAttributes, argumentAttributes: peerMentionsAttributes(primaryTextColor: primaryTextColor, peerIds: [(0, message.author?.id)]))
case .joinedByRequest:
attributedString = NSAttributedString(string: isChannel ? strings.Notification_JoinedChannelByRequest : strings.Notification_JoinedGroupByRequest, font: titleFont, textColor: primaryTextColor)
case .channelMigratedFromGroup, .groupMigratedToChannel:
attributedString = NSAttributedString(string: "", font: titleFont, textColor: primaryTextColor)
case let .messageAutoremoveTimeoutUpdated(timeout):