Improve scrolling behaviour and add name colors

This commit is contained in:
David Langley
2021-09-16 23:48:59 +01:00
parent cb7b591ff6
commit 36e4327a76
7 changed files with 72 additions and 15 deletions
@@ -35,7 +35,6 @@ class TemplateRoomChatService: TemplateRoomChatServiceProtocol {
private let eventFormatter: EventFormatter
private var roomState: MXRoomState?
private var roomListenerReference: Any?
private var usernameColorGenerator: UserNameColorGenerator()
// MARK: Public
private(set) var chatMessagesSubject: CurrentValueSubject<[TemplateRoomChatMessage], Never>
@@ -47,7 +46,6 @@ class TemplateRoomChatService: TemplateRoomChatServiceProtocol {
// MARK: - Setup
init(room: MXRoom) {
)
self.room = room
self.eventFormatter = EventFormatter(matrixSession: room.mxSession)
self.chatMessagesSubject = CurrentValueSubject([])