mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 23:12:37 +01:00
fix: Minor fixes
This commit is contained in:
parent
0061660142
commit
11e2dd5c1b
@ -451,7 +451,8 @@ class _ChatState extends State<_Chat> {
|
|||||||
if (_collapseRoomCreate &&
|
if (_collapseRoomCreate &&
|
||||||
filteredEvents[filteredEvents.length - 1].type ==
|
filteredEvents[filteredEvents.length - 1].type ==
|
||||||
EventTypes.RoomCreate) {
|
EventTypes.RoomCreate) {
|
||||||
while (filteredEvents[filteredEvents.length - 2].senderId ==
|
while (filteredEvents.length >= 3 &&
|
||||||
|
filteredEvents[filteredEvents.length - 2].senderId ==
|
||||||
filteredEvents[filteredEvents.length - 1].senderId &&
|
filteredEvents[filteredEvents.length - 1].senderId &&
|
||||||
![EventTypes.Message, EventTypes.Sticker, EventTypes.Encrypted]
|
![EventTypes.Message, EventTypes.Sticker, EventTypes.Encrypted]
|
||||||
.contains(filteredEvents[filteredEvents.length - 2].type)) {
|
.contains(filteredEvents[filteredEvents.length - 2].type)) {
|
||||||
|
@ -121,15 +121,20 @@ class _SettingsState extends State<Settings> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setJitsiInstanceAction(BuildContext context) async {
|
void setJitsiInstanceAction(BuildContext context) async {
|
||||||
|
const prefix = 'https://';
|
||||||
var input = await showTextInputDialog(
|
var input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).editJitsiInstance,
|
title: L10n.of(context).editJitsiInstance,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(initialText: Matrix.of(context).jitsiInstance),
|
DialogTextField(
|
||||||
|
initialText:
|
||||||
|
Matrix.of(context).jitsiInstance.replaceFirst(prefix, ''),
|
||||||
|
prefixText: prefix,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
if (input == null) return;
|
if (input == null) return;
|
||||||
var jitsi = input.single;
|
var jitsi = prefix + input.single;
|
||||||
if (!jitsi.endsWith('/')) {
|
if (!jitsi.endsWith('/')) {
|
||||||
jitsi += '/';
|
jitsi += '/';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user