chore: remove unused `loadingHistoryMessagesInProgress` property

`loadingHistoryMessagesInProgress` was moved to content module but the
property was never removed from the messages module view

see: fc24f16525
This commit is contained in:
Patryk Osmaczko 2022-12-16 15:34:03 +01:00 committed by osmaczko
parent ec8c64d7a1
commit 9ce9598a83
1 changed files with 0 additions and 16 deletions

View File

@ -10,7 +10,6 @@ QtObject:
model: Model
modelVariant: QVariant
initialMessagesLoaded: bool
loadingHistoryMessagesInProgress: bool
messageSearchOngoing: bool
proc delete*(self: View) =
@ -111,21 +110,6 @@ QtObject:
self.initialMessagesLoaded = true
self.initialMessagesLoadedChanged()
proc loadingHistoryMessagesInProgressChanged*(self: View) {.signal.}
proc getLoadingHistoryMessagesInProgress*(self: View): bool {.slot.} =
return self.loadingHistoryMessagesInProgress
QtProperty[bool] loadingHistoryMessagesInProgress:
read = getLoadingHistoryMessagesInProgress
notify = loadingHistoryMessagesInProgressChanged
proc setLoadingHistoryMessagesInProgress*(self: View, value: bool) = # this is not a slot
if (value == self.loadingHistoryMessagesInProgress):
return
self.loadingHistoryMessagesInProgress = value
self.loadingHistoryMessagesInProgressChanged()
proc loadMoreMessages*(self: View) {.slot.} =
self.delegate.loadMoreMessages()