Do not check username while logging.
This commit is contained in:
parent
3430882e05
commit
7b10707dde
|
@ -14,11 +14,6 @@ LoginForm {
|
|||
loginButtonTooltip.open()
|
||||
return
|
||||
}
|
||||
if (!(usernameField.text.startsWith("@") && usernameField.text.includes(":"))) {
|
||||
loginButtonTooltip.text = "Username should be in format of @example:example.com"
|
||||
loginButtonTooltip.open()
|
||||
return
|
||||
}
|
||||
|
||||
loginButton.text = "Logging in..."
|
||||
loginButton.enabled = false
|
||||
|
|
21
res.qrc
21
res.qrc
|
@ -52,27 +52,6 @@
|
|||
<file>imports/Spectral/Component/AutoListView.qml</file>
|
||||
<file>imports/Spectral/Component/Timeline/TimelineImage.qml</file>
|
||||
<file>imports/Spectral/Component/Timeline/TimelineLabel.qml</file>
|
||||
<file>src/accountlistmodel.cpp</file>
|
||||
<file>src/accountlistmodel.h</file>
|
||||
<file>src/controller.cpp</file>
|
||||
<file>src/controller.h</file>
|
||||
<file>src/emojimodel.cpp</file>
|
||||
<file>src/emojimodel.h</file>
|
||||
<file>src/imageitem.cpp</file>
|
||||
<file>src/imageitem.h</file>
|
||||
<file>src/imageprovider.cpp</file>
|
||||
<file>src/imageprovider.h</file>
|
||||
<file>src/main.cpp</file>
|
||||
<file>src/messageeventmodel.cpp</file>
|
||||
<file>src/messageeventmodel.h</file>
|
||||
<file>src/roomlistmodel.cpp</file>
|
||||
<file>src/roomlistmodel.h</file>
|
||||
<file>src/spectralroom.cpp</file>
|
||||
<file>src/spectralroom.h</file>
|
||||
<file>src/spectraluser.cpp</file>
|
||||
<file>src/spectraluser.h</file>
|
||||
<file>src/userlistmodel.cpp</file>
|
||||
<file>src/userlistmodel.h</file>
|
||||
<file>imports/Spectral/Component/AutoTextField.qml</file>
|
||||
<file>imports/Spectral/Panel/RoomPanelInput.qml</file>
|
||||
</qresource>
|
||||
|
|
|
@ -170,12 +170,10 @@ void SpectralRoom::saveViewport(int topIndex, int bottomIndex) {
|
|||
(bottomIndex == 0 || topIndex == savedTopVisibleIndex())))
|
||||
return;
|
||||
if (bottomIndex == 0) {
|
||||
qDebug() << "Saving viewport as the latest available";
|
||||
setFirstDisplayedEventId({});
|
||||
setLastDisplayedEventId({});
|
||||
return;
|
||||
}
|
||||
qDebug() << "Saving viewport:" << topIndex << "thru" << bottomIndex;
|
||||
setFirstDisplayedEvent(maxTimelineIndex() - topIndex);
|
||||
setLastDisplayedEvent(maxTimelineIndex() - bottomIndex);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue