scroll down when changing filter
This commit is contained in:
Vendored
+11
-6
@@ -3129,7 +3129,6 @@
|
|||||||
};
|
};
|
||||||
this.updateMonthGrid = () => {
|
this.updateMonthGrid = () => {
|
||||||
const today = formatISO(this.coreViewModel.todayDate.value);
|
const today = formatISO(this.coreViewModel.todayDate.value);
|
||||||
console.log(today, this.coreViewModel.todayDate.value);
|
|
||||||
if (this.currentTodayDate == today)
|
if (this.currentTodayDate == today)
|
||||||
return;
|
return;
|
||||||
this.loadMonthTasks();
|
this.loadMonthTasks();
|
||||||
@@ -4188,7 +4187,7 @@
|
|||||||
);
|
);
|
||||||
this.addMessage(chatMessage);
|
this.addMessage(chatMessage);
|
||||||
this.connectionModel.sendMessageOrStore(chatMessage);
|
this.connectionModel.sendMessageOrStore(chatMessage);
|
||||||
return true;
|
return chatMessage.id;
|
||||||
};
|
};
|
||||||
this.decryptMessage = async (chatMessage) => {
|
this.decryptMessage = async (chatMessage) => {
|
||||||
const decryptedBody = await decryptString(
|
const decryptedBody = await decryptString(
|
||||||
@@ -4607,19 +4606,24 @@
|
|||||||
this.composingMessage = new State("");
|
this.composingMessage = new State("");
|
||||||
this.focusSetter = new State(null);
|
this.focusSetter = new State(null);
|
||||||
// methods
|
// methods
|
||||||
this.sendMessage = () => {
|
this.sendMessage = async () => {
|
||||||
if (this.cannotSendMessage.value == true) return;
|
if (this.cannotSendMessage.value == true) return;
|
||||||
this.sendMessageFromBody(this.composingMessage.value);
|
const idPromise = this.sendMessageFromBody(this.composingMessage.value);
|
||||||
this.composingMessage.value = "";
|
this.composingMessage.value = "";
|
||||||
|
const id = await idPromise;
|
||||||
|
if (id && this.reactionFilter.value != void 0) {
|
||||||
|
this.sendReaction(id, this.reactionFilter.value, false);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
this.sendMessageFromBody = (body) => {
|
this.sendMessageFromBody = (body) => {
|
||||||
let replyId = void 0;
|
let replyId = void 0;
|
||||||
if (this.replyingMessage.value) {
|
if (this.replyingMessage.value) {
|
||||||
replyId = this.replyingMessage.value.chatMessage.id;
|
replyId = this.replyingMessage.value.chatMessage.id;
|
||||||
}
|
}
|
||||||
this.chatViewModel.chatModel.sendMessage(body, replyId);
|
const id = this.chatViewModel.chatModel.sendMessage(body, replyId);
|
||||||
if (this.replyViewSelectedMessage.value != void 0) return;
|
if (this.replyViewSelectedMessage.value == void 0)
|
||||||
this.replyingMessage.value = void 0;
|
this.replyingMessage.value = void 0;
|
||||||
|
return id;
|
||||||
};
|
};
|
||||||
this.decryptMessage = async (messageViewModel) => {
|
this.decryptMessage = async (messageViewModel) => {
|
||||||
const chatMessage = messageViewModel.chatMessage;
|
const chatMessage = messageViewModel.chatMessage;
|
||||||
@@ -6751,6 +6755,7 @@
|
|||||||
messagePageViewModel.filteredMessageViewModels.subscribeSilent(
|
messagePageViewModel.filteredMessageViewModels.subscribeSilent(
|
||||||
scrollDownIfApplicable
|
scrollDownIfApplicable
|
||||||
);
|
);
|
||||||
|
bulkSubscribe([messagePageViewModel.reactionFilter, messagePageViewModel.searchViewModel.appliedQuery], scrollDown);
|
||||||
messagePageViewModel.replyViewSelectedMessage.subscribeSilent((selectedMessage) => {
|
messagePageViewModel.replyViewSelectedMessage.subscribeSilent((selectedMessage) => {
|
||||||
if (selectedMessage != void 0) return;
|
if (selectedMessage != void 0) return;
|
||||||
setTimeout(scrollDown, 100);
|
setTimeout(scrollDown, 100);
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
const VERSION = "2610 Beta 9"
|
const VERSION = "2610 Beta 10"
|
||||||
|
|
||||||
function processUrl(event) {
|
function processUrl(event) {
|
||||||
const url = event.request.url;
|
const url = event.request.url;
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
2610 Beta 9
|
2610 Beta 10.8
|
||||||
|
|||||||
Reference in New Issue
Block a user