[WIP] Topics

This commit is contained in:
Ali
2022-10-22 22:15:33 +04:00
parent d9ab563c94
commit e0746fa0c2
19 changed files with 289 additions and 51 deletions

View File

@@ -1392,6 +1392,13 @@ class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewItemNode
}
authorRank = attributes.rank
}
if authorRank == nil {
if let topicAuthorId = item.associatedData.topicAuthorId, topicAuthorId == message.author?.id {
//TODO:localize
authorRank = .custom("Topic Author")
}
}
case .group:
break
}