Fix various code smells as reported by Sonarcloud, fixed tests

This commit is contained in:
Stefan Ceriu
2022-05-25 13:44:24 +03:00
committed by Stefan Ceriu
parent f5890b68a2
commit 73f507045b
6 changed files with 23 additions and 24 deletions
@@ -143,7 +143,7 @@ class RoomSummary: RoomSummaryProtocol {
switch await roomProxy.paginateBackwards(count: 1) {
case .success:
self.lastMessage = await self.eventBriefFactory.eventBriefForMessage(self.roomProxy.messages.last)
lastMessage = await eventBriefFactory.eventBriefForMessage(roomProxy.messages.last)
case .failure(let error):
MXLog.error("Failed back paginating with error: \(error)")
}