Fix white space on line begin
Fix [messageActionHistoryClear]
This commit is contained in:
parent
42506be144
commit
388075ace3
@ -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];
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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": "",
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user