Fix white space on line begin

Fix [messageActionHistoryClear]
This commit is contained in:
Eduard Kuzmenko 2020-11-19 00:13:33 +02:00
parent 42506be144
commit 388075ace3
4 changed files with 5 additions and 2 deletions

View File

@ -503,6 +503,7 @@ export default class AppSharedMediaTab implements SliderTab {
const match = RichTextProcessor.matchUrl(message.message);
if(!match) {
this.log.error('NO ENTITY AND NO MATCH:', message);
continue;
}
url = match[0];

View File

@ -66,6 +66,7 @@ let TEST_SCROLL = TEST_SCROLL_TIMES;
const LEFT_COLUMN_ACTIVE_CLASSNAME = 'is-left-column-shown';
export const CHAT_ANIMATION_GROUP = 'chat';
const IGNORE_ACTIONS = ['messageActionHistoryClear'];
export class AppImManager {
public columnEl = document.getElementById('column-center') as HTMLDivElement;
@ -1749,7 +1750,7 @@ export class AppImManager {
if(message._ == 'messageService') {
let action = message.action;
let _ = action._;
if(langPack.hasOwnProperty(_) && !langPack[_]) {
if(IGNORE_ACTIONS.includes(_) || (langPack.hasOwnProperty(_) && !langPack[_])) {
return bubble;
}

View File

@ -16,7 +16,7 @@ export const langPack: {[actionType: string]: string} = {
"messageActionChannelEditTitle": "Channel renamed",
"messageActionChannelEditPhoto": "Channel photo updated",
"messageActionChannelDeletePhoto": "Channel photo removed",
"messageActionHistoryClear": "",//"History cleared",
"messageActionHistoryClear": "History was cleared",
"messageActionChannelMigrateFrom": "",

View File

@ -854,6 +854,7 @@ $bubble-margin: .25rem;
color: #000;
line-height: 21px;
word-break: break-word;
white-space: pre-wrap; // * fix spaces on line begin
/* * {
overflow: hidden;