Fix refreshing webPage media
This commit is contained in:
parent
304bec801f
commit
024b867dad
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/14.833978a18677846355d8.chunk.js.map
Normal file
1
public/14.833978a18677846355d8.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
public/6.ff34eab25b62189d8231.chunk.js
Normal file
2
public/6.ff34eab25b62189d8231.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
public/6.ff34eab25b62189d8231.chunk.js.map
Normal file
1
public/6.ff34eab25b62189d8231.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1548,12 +1548,12 @@ export default class ChatBubbles {
|
|||
({rect}) => {
|
||||
let height = windowSize.windowH;
|
||||
height -= this.chat.topbar.container.getBoundingClientRect().height;
|
||||
height -= 78;
|
||||
height -= mediaSizes.isMobile ? 58 : 78; // TODO: change height to mobile when ESG is bottom
|
||||
return height;
|
||||
|
||||
const rowsWrapperHeight = this.chat.input.rowsWrapper.getBoundingClientRect().height;
|
||||
/* const rowsWrapperHeight = this.chat.input.rowsWrapper.getBoundingClientRect().height;
|
||||
const diff = rowsWrapperHeight - 54;
|
||||
return rect.height + diff;
|
||||
return rect.height + diff; */
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -44,11 +44,9 @@ export class AppWebPagesManager {
|
|||
const {id} = apiWebPage;
|
||||
|
||||
const oldWebPage = this.webpages[id];
|
||||
if(oldWebPage &&
|
||||
const isUpdated = oldWebPage &&
|
||||
oldWebPage._ === apiWebPage._ &&
|
||||
(oldWebPage as WebPage.webPage).hash === (oldWebPage as WebPage.webPage).hash) {
|
||||
return oldWebPage;
|
||||
}
|
||||
(oldWebPage as WebPage.webPage).hash === (oldWebPage as WebPage.webPage).hash;
|
||||
|
||||
if(apiWebPage._ === 'webPage') {
|
||||
if(apiWebPage.photo?._ === 'photo') {
|
||||
|
@ -110,7 +108,7 @@ export class AppWebPagesManager {
|
|||
safeReplaceObject(oldWebPage, apiWebPage);
|
||||
}
|
||||
|
||||
if(!messageKey && pendingSet !== undefined) {
|
||||
if(!messageKey && pendingSet !== undefined && isUpdated) {
|
||||
const msgs: {peerId: PeerId, mid: number, isScheduled: boolean}[] = [];
|
||||
pendingSet.forEach((value) => {
|
||||
const [peerId, mid, isScheduled] = value.split('_');
|
||||
|
|
Loading…
Reference in New Issue
Block a user