diff --git a/src/app/chat/view.nim b/src/app/chat/view.nim index d4ac7db60c..caeebcc004 100644 --- a/src/app/chat/view.nim +++ b/src/app/chat/view.nim @@ -35,6 +35,11 @@ QtObject: self.names.add(chatId) self.endInsertRows() + proc get*(self: ChatsView, index: int): string {.slot.} = + if index < 0 or index >= self.names.len: + return + return self.names[index] + method rowCount(self: ChatsView, index: QModelIndex = nil): int = return self.names.len