Browse Source

more fixes

master
Eduard Kuzmenko 3 years ago
parent
commit
179d9abba8
  1. 2
      src/lang.ts
  2. 8
      src/lib/appManagers/appMessagesManager.ts
  3. 1
      src/lib/langPack.ts
  4. 8
      src/scss/partials/_chatBubble.scss

2
src/lang.ts

@ -476,6 +476,7 @@ const lang = {
"ActionGroupCallStarted": "un1 started a voice chat", "ActionGroupCallStarted": "un1 started a voice chat",
"ActionGroupCallStartedByYou": "You started a voice chat", "ActionGroupCallStartedByYou": "You started a voice chat",
"ActionGroupCallJustStarted": "Voice chat started", "ActionGroupCallJustStarted": "Voice chat started",
"ActionGroupCallEnded": "Voice chat ended (%s)",
"ActionGroupCallInvited": "un1 invited un2 to the voice chat", "ActionGroupCallInvited": "un1 invited un2 to the voice chat",
"ActionGroupCallYouInvited": "You invited un2 to the voice chat", "ActionGroupCallYouInvited": "You invited un2 to the voice chat",
"ActionGroupCallInvitedYou": "un1 invited you to the voice chat", "ActionGroupCallInvitedYou": "un1 invited you to the voice chat",
@ -642,6 +643,7 @@ const lang = {
"ChatList.Service.Call.Missed": "Missed Call", "ChatList.Service.Call.Missed": "Missed Call",
"ChatList.Service.VoiceChatScheduled": "%1$@ scheduled a voice chat for %2$@", "ChatList.Service.VoiceChatScheduled": "%1$@ scheduled a voice chat for %2$@",
"ChatList.Service.VoiceChatScheduledYou": "You scheduled a voice chat for %2$@", "ChatList.Service.VoiceChatScheduledYou": "You scheduled a voice chat for %2$@",
"ChatList.Service.VoiceChatScheduled.Channel": "Voice chat scheduled for %@",
"ChatList.Filter.Header": "Create folders for different groups of chats and quickly switch between them.", "ChatList.Filter.Header": "Create folders for different groups of chats and quickly switch between them.",
"ChatList.Filter.NewTitle": "Create Folder", "ChatList.Filter.NewTitle": "Create Folder",
"ChatList.Filter.List.Title": "Chat Folders", "ChatList.Filter.List.Title": "Chat Folders",

8
src/lib/appManagers/appMessagesManager.ts

@ -2748,10 +2748,14 @@ export class AppMessagesManager {
const tomorrowDate = new Date(today); const tomorrowDate = new Date(today);
tomorrowDate.setDate(tomorrowDate.getDate() + 1); tomorrowDate.setDate(tomorrowDate.getDate() + 1);
langPackKey = 'ChatList.Service.VoiceChatScheduled'; const isBroadcast = appPeersManager.isBroadcast(message.peerId);
langPackKey = isBroadcast ? 'ChatList.Service.VoiceChatScheduled.Channel' : 'ChatList.Service.VoiceChatScheduled';
args = [];
const myId = appUsersManager.getSelf().id; const myId = appUsersManager.getSelf().id;
if(message.fromId === myId) { if(message.fromId === myId) {
langPackKey += 'You'; langPackKey += 'You';
} else if(!isBroadcast) {
args.push(getNameDivHTML(message.fromId, plain));
} }
let k: LangPackKey, _args: any[] = []; let k: LangPackKey, _args: any[] = [];
@ -2773,7 +2777,7 @@ export class AppMessagesManager {
_args.push(formatTime(date)); _args.push(formatTime(date));
const t = i18n(k, _args); const t = i18n(k, _args);
args = [t]; args.push(t);
break; break;
} }

1
src/lib/langPack.ts

@ -53,6 +53,7 @@ export const langPack: {[actionType: string]: LangPackKey} = {
"messageActionGroupCall.started": "ActionGroupCallJustStarted", "messageActionGroupCall.started": "ActionGroupCallJustStarted",
"messageActionGroupCall.started_by": "ActionGroupCallStarted", "messageActionGroupCall.started_by": "ActionGroupCallStarted",
"messageActionGroupCall.started_byYou": "ActionGroupCallStartedByYou", "messageActionGroupCall.started_byYou": "ActionGroupCallStartedByYou",
"messageActionGroupCall.ended": "ActionGroupCallEnded",
"messageActionGroupCall.ended_by": "Chat.Service.VoiceChatFinished", "messageActionGroupCall.ended_by": "Chat.Service.VoiceChatFinished",
"messageActionGroupCall.ended_byYou": "Chat.Service.VoiceChatFinishedYou", "messageActionGroupCall.ended_byYou": "Chat.Service.VoiceChatFinishedYou",

8
src/scss/partials/_chatBubble.scss

@ -1062,12 +1062,12 @@ $bubble-margin: .25rem;
// all for audio (not voice) // all for audio (not voice)
.message.audio-message { .message.audio-message {
min-width: 335px; width: 335px;
max-width: 335px !important; max-width: unquote("min(100%, 335px)") !important;
@include respond-to(handhelds) { @include respond-to(handhelds) {
min-width: 280px; width: 280px;
max-width: 300px !important; max-width: unquote("min(100%, 300px)") !important;
} }
} }

Loading…
Cancel
Save