Browse Source

Fix handling edited message in chatlist

Change shipping icon
master
Eduard Kuzmenko 2 years ago
parent
commit
96f03e056c
  1. 2
      src/components/popups/payment.ts
  2. 4
      src/lib/appManagers/appMessagesManager.ts

2
src/components/popups/payment.ts

@ -618,7 +618,7 @@ export default class PopupPayment extends PopupElement {
let lastShippingPricesElements: HTMLElement[]; let lastShippingPricesElements: HTMLElement[];
shippingMethodRow = createRow({ shippingMethodRow = createRow({
icon: 'car', icon: 'shipping',
titleLangKey: 'PaymentCheckoutShippingMethod', titleLangKey: 'PaymentCheckoutShippingMethod',
clickable: !isReceipt && (onShippingMethodClick = () => { clickable: !isReceipt && (onShippingMethodClick = () => {
new PopupPaymentShippingMethods(paymentForm as PaymentsPaymentForm, lastRequestedInfo, lastShippingOption).addEventListener('finish', (shippingOption) => { new PopupPaymentShippingMethods(paymentForm as PaymentsPaymentForm, lastRequestedInfo, lastShippingOption).addEventListener('finish', (shippingOption) => {

4
src/lib/appManagers/appMessagesManager.ts

@ -4260,8 +4260,8 @@ export class AppMessagesManager extends AppManager {
} }
releaseUnreadCount(); releaseUnreadCount();
this.rootScope.dispatchEvent('dialogs_multiupdate', {[peerId]: dialog});
this.dialogsStorage.setDialogToState(dialog); this.dialogsStorage.setDialogToState(dialog);
this.rootScope.dispatchEvent('dialogs_multiupdate', {[peerId]: dialog});
} }
}; };
@ -4321,8 +4321,8 @@ export class AppMessagesManager extends AppManager {
if(isTopMessage || (message as Message.message).grouped_id) { if(isTopMessage || (message as Message.message).grouped_id) {
const updatedDialogs: {[peerId: PeerId]: Dialog} = {}; const updatedDialogs: {[peerId: PeerId]: Dialog} = {};
updatedDialogs[peerId] = dialog; updatedDialogs[peerId] = dialog;
this.rootScope.dispatchEvent('dialogs_multiupdate', updatedDialogs);
this.dialogsStorage.setDialogToState(dialog); this.dialogsStorage.setDialogToState(dialog);
this.rootScope.dispatchEvent('dialogs_multiupdate', updatedDialogs);
} }
} }
}; };

Loading…
Cancel
Save