Remember the matrixId during login when moving back from password
Remember the matrixId during login when moving back from password BUG: 489976
This commit is contained in:
@@ -23,6 +23,7 @@ LoginStep {
|
||||
FormCard.FormTextFieldDelegate {
|
||||
id: matrixIdField
|
||||
label: i18n("Matrix ID:")
|
||||
text: LoginHelper.matrixId
|
||||
placeholderText: "@user:example.org"
|
||||
Accessible.name: i18n("Matrix ID")
|
||||
onTextChanged: {
|
||||
|
||||
@@ -135,7 +135,7 @@ QString LoginHelper::matrixId() const
|
||||
void LoginHelper::setMatrixId(const QString &matrixId)
|
||||
{
|
||||
m_matrixId = matrixId;
|
||||
if (!m_matrixId.startsWith(QLatin1Char('@'))) {
|
||||
if (!m_matrixId.isEmpty() && !m_matrixId.startsWith(QLatin1Char('@'))) {
|
||||
m_matrixId.prepend(QLatin1Char('@'));
|
||||
}
|
||||
Q_EMIT matrixIdChanged();
|
||||
|
||||
Reference in New Issue
Block a user