|
|
@ -1272,6 +1272,7 @@ export class MessageModel extends Backbone.Model<MessageAttributes> {
|
|
|
|
this.getConversation()?.getNicknameOrRealUsernameOrPlaceholder() || window.i18n('unknown');
|
|
|
|
this.getConversation()?.getNicknameOrRealUsernameOrPlaceholder() || window.i18n('unknown');
|
|
|
|
|
|
|
|
|
|
|
|
if (groupUpdate.left) {
|
|
|
|
if (groupUpdate.left) {
|
|
|
|
|
|
|
|
// @ts-expect-error -- TODO: Fix by using new i18n builder
|
|
|
|
const { token, args } = getLeftGroupUpdateChangeStr(groupUpdate.left, groupName);
|
|
|
|
const { token, args } = getLeftGroupUpdateChangeStr(groupUpdate.left, groupName);
|
|
|
|
// TODO: clean up this typing
|
|
|
|
// TODO: clean up this typing
|
|
|
|
return window.i18n.stripped(...([token, args] as GetMessageArgs<LocalizerToken>));
|
|
|
|
return window.i18n.stripped(...([token, args] as GetMessageArgs<LocalizerToken>));
|
|
|
@ -1282,12 +1283,14 @@ export class MessageModel extends Backbone.Model<MessageAttributes> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (groupUpdate.joined?.length) {
|
|
|
|
if (groupUpdate.joined?.length) {
|
|
|
|
|
|
|
|
// @ts-expect-error -- TODO: Fix by using new i18n builder
|
|
|
|
const { token, args } = getJoinedGroupUpdateChangeStr(groupUpdate.joined, groupName);
|
|
|
|
const { token, args } = getJoinedGroupUpdateChangeStr(groupUpdate.joined, groupName);
|
|
|
|
// TODO: clean up this typing
|
|
|
|
// TODO: clean up this typing
|
|
|
|
return window.i18n.stripped(...([token, args] as GetMessageArgs<LocalizerToken>));
|
|
|
|
return window.i18n.stripped(...([token, args] as GetMessageArgs<LocalizerToken>));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (groupUpdate.kicked?.length) {
|
|
|
|
if (groupUpdate.kicked?.length) {
|
|
|
|
|
|
|
|
// @ts-expect-error -- TODO: Fix by using new i18n builder
|
|
|
|
const { token, args } = getKickedGroupUpdateStr(groupUpdate.kicked, groupName);
|
|
|
|
const { token, args } = getKickedGroupUpdateStr(groupUpdate.kicked, groupName);
|
|
|
|
// TODO: clean up this typing
|
|
|
|
// TODO: clean up this typing
|
|
|
|
return window.i18n.stripped(...([token, args] as GetMessageArgs<LocalizerToken>));
|
|
|
|
return window.i18n.stripped(...([token, args] as GetMessageArgs<LocalizerToken>));
|
|
|
|