Skip to content

Commit ba8997e

Browse files
committed
Merge remote-tracking branch 'origin/release-7.1.0' into develop
2 parents 585175f + b604dab commit ba8997e

File tree

113 files changed

+1692
-254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1692
-254
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket.chat/meteor': patch
3+
---
4+
5+
Bump @rocket.chat/meteor version.

.changeset/pre.json

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"mode": "pre",
3+
"tag": "rc",
4+
"initialVersions": {
5+
"@rocket.chat/meteor": "7.1.0-develop",
6+
"rocketchat-services": "2.0.0",
7+
"@rocket.chat/uikit-playground": "0.6.0",
8+
"@rocket.chat/account-service": "0.4.9",
9+
"@rocket.chat/authorization-service": "0.4.9",
10+
"@rocket.chat/ddp-streamer": "0.3.9",
11+
"@rocket.chat/omnichannel-transcript": "0.4.9",
12+
"@rocket.chat/presence-service": "0.4.9",
13+
"@rocket.chat/queue-worker": "0.4.9",
14+
"@rocket.chat/stream-hub-service": "0.4.9",
15+
"@rocket.chat/license": "1.0.0",
16+
"@rocket.chat/network-broker": "0.1.1",
17+
"@rocket.chat/omnichannel-services": "0.3.6",
18+
"@rocket.chat/pdf-worker": "0.2.6",
19+
"@rocket.chat/presence": "0.2.9",
20+
"@rocket.chat/ui-theming": "0.4.0",
21+
"@rocket.chat/account-utils": "0.0.2",
22+
"@rocket.chat/agenda": "0.1.0",
23+
"@rocket.chat/api-client": "0.2.9",
24+
"@rocket.chat/apps": "0.2.0",
25+
"@rocket.chat/apps-engine": "1.47.0",
26+
"@rocket.chat/base64": "1.0.13",
27+
"@rocket.chat/cas-validate": "0.0.2",
28+
"@rocket.chat/core-services": "0.7.1",
29+
"@rocket.chat/core-typings": "7.1.0-develop",
30+
"@rocket.chat/cron": "0.1.9",
31+
"@rocket.chat/ddp-client": "0.3.9",
32+
"@rocket.chat/eslint-config": "0.7.0",
33+
"@rocket.chat/favicon": "0.0.2",
34+
"@rocket.chat/freeswitch": "1.0.0",
35+
"@rocket.chat/fuselage-ui-kit": "12.0.0",
36+
"@rocket.chat/gazzodown": "12.0.0",
37+
"@rocket.chat/i18n": "1.0.0",
38+
"@rocket.chat/instance-status": "0.1.9",
39+
"@rocket.chat/jest-presets": "0.0.1",
40+
"@rocket.chat/jwt": "0.1.1",
41+
"@rocket.chat/livechat": "1.20.1",
42+
"@rocket.chat/log-format": "0.0.2",
43+
"@rocket.chat/logger": "0.0.2",
44+
"@rocket.chat/message-parser": "0.31.31",
45+
"@rocket.chat/mock-providers": "0.1.4",
46+
"@rocket.chat/model-typings": "1.0.0",
47+
"@rocket.chat/models": "1.0.0",
48+
"@rocket.chat/poplib": "0.0.2",
49+
"@rocket.chat/password-policies": "0.0.2",
50+
"@rocket.chat/patch-injection": "0.0.1",
51+
"@rocket.chat/peggy-loader": "0.31.27",
52+
"@rocket.chat/random": "1.2.2",
53+
"@rocket.chat/release-action": "2.2.3",
54+
"@rocket.chat/release-changelog": "0.1.0",
55+
"@rocket.chat/rest-typings": "7.1.0-develop",
56+
"@rocket.chat/server-cloud-communication": "0.0.2",
57+
"@rocket.chat/server-fetch": "0.0.3",
58+
"@rocket.chat/sha256": "1.0.10",
59+
"@rocket.chat/tools": "0.2.2",
60+
"@rocket.chat/tracing": "0.0.1",
61+
"@rocket.chat/ui-avatar": "8.0.0",
62+
"@rocket.chat/ui-client": "12.0.0",
63+
"@rocket.chat/ui-composer": "0.4.0",
64+
"@rocket.chat/ui-contexts": "12.0.0",
65+
"@rocket.chat/ui-kit": "0.37.0",
66+
"@rocket.chat/ui-video-conf": "12.0.0",
67+
"@rocket.chat/ui-voip": "2.0.0",
68+
"@rocket.chat/web-ui-registration": "12.0.0"
69+
},
70+
"changesets": [
71+
"bump-patch-1732728542480",
72+
"clean-flies-collect",
73+
"curvy-flies-greet",
74+
"fair-colts-remain",
75+
"forty-gorillas-kneel",
76+
"friendly-ravens-teach",
77+
"green-papayas-thank",
78+
"happy-stingrays-provide",
79+
"honest-pumpkins-joke",
80+
"lazy-avocados-whisper",
81+
"lemon-foxes-carry",
82+
"light-terms-ring",
83+
"mean-cobras-sneeze",
84+
"metal-avocados-serve",
85+
"neat-flies-drive",
86+
"nervous-rivers-fry",
87+
"old-coins-bow",
88+
"pink-dodos-greet",
89+
"plenty-snakes-dream",
90+
"popular-queens-brake",
91+
"real-jeans-worry",
92+
"serious-mice-film",
93+
"seven-berries-check",
94+
"seven-otters-fold",
95+
"silent-steaks-happen",
96+
"smart-radios-reflect",
97+
"spicy-spiders-search",
98+
"spotty-ads-knock",
99+
"stale-actors-enjoy",
100+
"sweet-needles-melt",
101+
"swift-suns-perform",
102+
"three-dragons-brush",
103+
"tricky-trees-destroy",
104+
"twelve-horses-suffer",
105+
"twenty-news-own",
106+
"two-guests-tan",
107+
"unlucky-kangaroos-yawn",
108+
"unlucky-wasps-check",
109+
"weak-trees-exercise"
110+
]
111+
}

apps/meteor/CHANGELOG.md

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,149 @@
11
# @rocket.chat/meteor
22

3+
## 7.1.0-rc.1
4+
5+
### Patch Changes
6+
7+
- Bump @rocket.chat/meteor version.
8+
9+
- <details><summary>Updated dependencies []:</summary>
10+
11+
- @rocket.chat/core-typings@7.1.0-rc.1
12+
- @rocket.chat/rest-typings@7.1.0-rc.1
13+
- @rocket.chat/license@1.0.1-rc.1
14+
- @rocket.chat/omnichannel-services@0.3.7-rc.1
15+
- @rocket.chat/pdf-worker@0.2.7-rc.1
16+
- @rocket.chat/presence@0.2.10-rc.1
17+
- @rocket.chat/api-client@0.2.10-rc.1
18+
- @rocket.chat/apps@0.2.1-rc.1
19+
- @rocket.chat/core-services@0.7.2-rc.1
20+
- @rocket.chat/cron@0.1.10-rc.1
21+
- @rocket.chat/freeswitch@1.0.1-rc.1
22+
- @rocket.chat/fuselage-ui-kit@13.0.0-rc.1
23+
- @rocket.chat/gazzodown@13.0.0-rc.1
24+
- @rocket.chat/model-typings@1.1.0-rc.1
25+
- @rocket.chat/ui-contexts@13.0.0-rc.1
26+
- @rocket.chat/server-cloud-communication@0.0.2
27+
- @rocket.chat/network-broker@0.1.2-rc.1
28+
- @rocket.chat/models@1.0.1-rc.1
29+
- @rocket.chat/ui-theming@0.4.0
30+
- @rocket.chat/ui-avatar@9.0.0-rc.1
31+
- @rocket.chat/ui-client@13.0.0-rc.1
32+
- @rocket.chat/ui-video-conf@13.0.0-rc.1
33+
- @rocket.chat/ui-voip@3.0.0-rc.1
34+
- @rocket.chat/web-ui-registration@13.0.0-rc.1
35+
- @rocket.chat/instance-status@0.1.10-rc.1
36+
</details>
37+
38+
## 7.1.0-rc.0
39+
40+
### Minor Changes
41+
42+
- ([#33897](https://github.com/RocketChat/Rocket.Chat/pull/33897)) adds unread badge to sidebar collapser
43+
44+
- ([#32906](https://github.com/RocketChat/Rocket.Chat/pull/32906)) Improves thread metrics featuring user avatars, better titles and repositioned elements.
45+
46+
- ([#33810](https://github.com/RocketChat/Rocket.Chat/pull/33810)) Adds cursor pagination on chat.syncMessages endpoint
47+
48+
- ([#33214](https://github.com/RocketChat/Rocket.Chat/pull/33214)) Adds a new route to allow fetching avatars by the user's id `/avatar/uid/<UserID>`
49+
50+
- ([#32727](https://github.com/RocketChat/Rocket.Chat/pull/32727)) These changes aims to add:
51+
- A brand-new omnichannel contact profile
52+
- The ability to communicate with known contacts only
53+
- Communicate with verified contacts only
54+
- Merge verified contacts across different channels
55+
- Block contact channels
56+
- Resolve conflicting contact information when registered via different channels
57+
- An advanced contact center filters
58+
- ([#33920](https://github.com/RocketChat/Rocket.Chat/pull/33920)) Improves the customizability of the naming of automatic Persistent video calls discussions, allowing the date of the call to be in different parts of the name, using the `[date]` keyword.
59+
60+
- ([#33997](https://github.com/RocketChat/Rocket.Chat/pull/33997)) Prevent apps' subprocesses from crashing on unhandled rejections or uncaught exceptions
61+
62+
- ([#33814](https://github.com/RocketChat/Rocket.Chat/pull/33814)) Adds a confirmation modal to the cancel subscription action
63+
64+
- ([#33949](https://github.com/RocketChat/Rocket.Chat/pull/33949)) Disables the possiblity to upload exempted apps
65+
66+
### Patch Changes
67+
68+
- ([#33776](https://github.com/RocketChat/Rocket.Chat/pull/33776)) Fix user highlights not matching only whole words
69+
70+
- ([#33818](https://github.com/RocketChat/Rocket.Chat/pull/33818)) Remove unused client side `setUserActiveStatus` meteor method.
71+
72+
- ([#33596](https://github.com/RocketChat/Rocket.Chat/pull/33596)) Bump meteor to 3.0.4 and Node version to 20.18.0
73+
74+
- ([#33713](https://github.com/RocketChat/Rocket.Chat/pull/33713)) Deprecated the `from` field in the apps email bridge and made it optional, using the server's settings when the field is omitted
75+
76+
- ([#32991](https://github.com/RocketChat/Rocket.Chat/pull/32991)) Fixes an issue where updating custom emojis didn’t work as expected, ensuring that uploaded emojis now update correctly and display without any caching problems.
77+
78+
- ([#33985](https://github.com/RocketChat/Rocket.Chat/pull/33985)) Fixes issue that could cause multiple discussions to be created when creating it from a message action
79+
80+
- ([#33904](https://github.com/RocketChat/Rocket.Chat/pull/33904)) adds missing html attributes in sidebar item templates
81+
82+
- ([#33218](https://github.com/RocketChat/Rocket.Chat/pull/33218)) Fixes message character limit not being applied to file upload descriptions
83+
84+
- ([#33908](https://github.com/RocketChat/Rocket.Chat/pull/33908)) Fixes the issue where newly created teams are incorrectly displayed as channels on the sidebar when the DISABLE_DB_WATCHERS environment variable is enabled
85+
86+
- ([#33953](https://github.com/RocketChat/Rocket.Chat/pull/33953)) Adds a divider on Create team modal - advanced settings
87+
88+
- ([#33786](https://github.com/RocketChat/Rocket.Chat/pull/33786)) Fixed an issue that would grant network permission to app's processes in wrong cases
89+
90+
- ([#33986](https://github.com/RocketChat/Rocket.Chat/pull/33986)) Fixes sidepanel not replicating sidebar sort preference
91+
92+
- ([#33689](https://github.com/RocketChat/Rocket.Chat/pull/33689)) Fixes banner breaking the UI with specific payloads
93+
94+
- ([#33808](https://github.com/RocketChat/Rocket.Chat/pull/33808)) Fixes client-side updates for recent emoji list when custom emojis are modified.
95+
96+
- ([#33902](https://github.com/RocketChat/Rocket.Chat/pull/33902)) Adds "Master volume" and "Call ringer volume" to the user preferences sound section.
97+
98+
- ([#33311](https://github.com/RocketChat/Rocket.Chat/pull/33311)) Sends server statistics only once a day despite multiple instance being started at different times.
99+
100+
- ([#33719](https://github.com/RocketChat/Rocket.Chat/pull/33719)) stops calling an object through proxy calling getQueueWorker
101+
102+
- ([#33785](https://github.com/RocketChat/Rocket.Chat/pull/33785)) Fixed an issue where the installed apps list would go stale without a refresh in some cases
103+
104+
- ([#33278](https://github.com/RocketChat/Rocket.Chat/pull/33278)) Fixes display of emoji aliases in custom emoji list by adding commas between aliases
105+
106+
- ([#33772](https://github.com/RocketChat/Rocket.Chat/pull/33772)) Fixes `waiting queue` feature. When `Livechat_waiting_queue` setting is enabled, incoming conversations should be sent to the queue instead of being assigned directly.
107+
108+
- ([#33963](https://github.com/RocketChat/Rocket.Chat/pull/33963)) Fixes edge case of thread unread not being added to unread group
109+
110+
- ([#33994](https://github.com/RocketChat/Rocket.Chat/pull/33994)) Adds login and permission validation for resetIrcConnection method
111+
112+
- ([#33880](https://github.com/RocketChat/Rocket.Chat/pull/33880)) Updates VoIP field labels from 'Free Extension Numbers' to 'Available Extensions' to better describe the field's purpose and improve clarity.
113+
114+
- ([#33958](https://github.com/RocketChat/Rocket.Chat/pull/33958)) Fixes an issue where resizable handler renders over the expanded thread view while using contextualbarResizable feature preview
115+
116+
- <details><summary>Updated dependencies [82767d8fd8a52ac348e8aded1d238e688d36129b, 80e36bfc3938775eb26aa5576f1b9b98896e1cc4, 66ecc64fc1d4464ad2818ad04e23a09cdf221194, 6c83bf0657004ee9cf43d5c832f51826a6591165, e7edeac3bdd22da0a04b8e873d5a008e249fb4be, 3569b0a9c48f8b94ebaef2f8b607c52fdb8e570a, b4841cb7206d855d7a1bc7604683a5b4a48b7176, 32d93a0666fa1cbe857d02889e93d9bbf45bd4f0, d1e6a73796269824fb1aa7afcc7b8aa242e34e90, 661cc01237629ce83699d6c25df25d12985e88bf, 63ccadc012499e004445ad6bc6cd2ff777aecbd1, ce7024af36fcde97b1da5b2731f6edc4a4c236b8, 616655585cb1c5c60d7cee97e25b17af3dfda794, e5fe727f6a2f0e60cdf7ba225e1f6caa6db2045c, d398866dba725918017e3609807f9d0ab9b89b72, 322bafd4bd1fe91ed34610501b269e4d8951944c, d398866dba725918017e3609807f9d0ab9b89b72]:</summary>
117+
118+
- @rocket.chat/apps-engine@1.48.0-rc.0
119+
- @rocket.chat/model-typings@1.1.0-rc.0
120+
- @rocket.chat/core-typings@7.1.0-rc.0
121+
- @rocket.chat/i18n@1.1.0-rc.0
122+
- @rocket.chat/rest-typings@7.1.0-rc.0
123+
- @rocket.chat/core-services@0.7.2-rc.0
124+
- @rocket.chat/presence@0.2.10-rc.0
125+
- @rocket.chat/apps@0.2.1-rc.0
126+
- @rocket.chat/fuselage-ui-kit@13.0.0-rc.0
127+
- @rocket.chat/omnichannel-services@0.3.7-rc.0
128+
- @rocket.chat/models@1.0.1-rc.0
129+
- @rocket.chat/license@1.0.1-rc.0
130+
- @rocket.chat/pdf-worker@0.2.7-rc.0
131+
- @rocket.chat/api-client@0.2.10-rc.0
132+
- @rocket.chat/cron@0.1.10-rc.0
133+
- @rocket.chat/freeswitch@1.0.1-rc.0
134+
- @rocket.chat/gazzodown@13.0.0-rc.0
135+
- @rocket.chat/ui-contexts@13.0.0-rc.0
136+
- @rocket.chat/web-ui-registration@13.0.0-rc.0
137+
- @rocket.chat/network-broker@0.1.2-rc.0
138+
- @rocket.chat/instance-status@0.1.10-rc.0
139+
- @rocket.chat/server-cloud-communication@0.0.2
140+
- @rocket.chat/ui-theming@0.4.0
141+
- @rocket.chat/ui-avatar@9.0.0-rc.0
142+
- @rocket.chat/ui-client@13.0.0-rc.0
143+
- @rocket.chat/ui-video-conf@13.0.0-rc.0
144+
- @rocket.chat/ui-voip@3.0.0-rc.0
145+
</details>
146+
3147
## 7.0.0
4148

5149
### Major Changes

apps/meteor/app/lib/server/lib/notifyListener.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ import type {
2121
IMessage,
2222
SettingValue,
2323
MessageTypesValues,
24+
ILivechatContact,
2425
} from '@rocket.chat/core-typings';
2526
import {
2627
Rooms,
28+
LivechatRooms,
2729
Permissions,
2830
Settings,
2931
PbxEvents,
@@ -87,6 +89,16 @@ export const notifyOnRoomChangedByUsernamesOrUids = withDbWatcherCheck(
8789
},
8890
);
8991

92+
export const notifyOnRoomChangedByContactId = withDbWatcherCheck(
93+
async <T extends ILivechatContact>(contactId: T['_id'], clientAction: ClientAction = 'updated'): Promise<void> => {
94+
const cursor = LivechatRooms.findOpenByContactId(contactId);
95+
96+
void cursor.forEach((room) => {
97+
void api.broadcast('watch.rooms', { clientAction, room });
98+
});
99+
},
100+
);
101+
90102
export const notifyOnRoomChangedByUserDM = withDbWatcherCheck(
91103
async <T extends IRoom>(userId: T['u']['_id'], clientAction: ClientAction = 'updated'): Promise<void> => {
92104
const items = Rooms.findDMsByUids([userId]);
@@ -251,6 +263,20 @@ export const notifyOnLivechatInquiryChangedById = withDbWatcherCheck(
251263
},
252264
);
253265

266+
export const notifyOnLivechatInquiryChangedByVisitorIds = withDbWatcherCheck(
267+
async (
268+
visitorIds: ILivechatInquiryRecord['v']['_id'][],
269+
clientAction: Exclude<ClientAction, 'removed'> = 'updated',
270+
diff?: Partial<Record<keyof ILivechatInquiryRecord, unknown> & { queuedAt: Date; takenAt: Date }>,
271+
): Promise<void> => {
272+
const cursor = LivechatInquiry.findByVisitorIds(visitorIds);
273+
274+
void cursor.forEach((inquiry) => {
275+
void api.broadcast('watch.inquiries', { clientAction, inquiry, diff });
276+
});
277+
},
278+
);
279+
254280
export const notifyOnLivechatInquiryChangedByRoom = withDbWatcherCheck(
255281
async (
256282
rid: ILivechatInquiryRecord['rid'],
@@ -553,6 +579,19 @@ export const notifyOnSubscriptionChangedByUserIdAndRoomType = withDbWatcherCheck
553579
},
554580
);
555581

582+
export const notifyOnSubscriptionChangedByVisitorIds = withDbWatcherCheck(
583+
async (
584+
visitorIds: Exclude<ISubscription['v'], undefined>['_id'][],
585+
clientAction: Exclude<ClientAction, 'removed'> = 'updated',
586+
): Promise<void> => {
587+
const cursor = Subscriptions.findOpenByVisitorIds(visitorIds, { projection: subscriptionFields });
588+
589+
void cursor.forEach((subscription) => {
590+
void api.broadcast('watch.subscriptions', { clientAction, subscription });
591+
});
592+
},
593+
);
594+
556595
export const notifyOnSubscriptionChangedByNameAndRoomType = withDbWatcherCheck(
557596
async (filter: Partial<Pick<ISubscription, 'name' | 't'>>, clientAction: Exclude<ClientAction, 'removed'> = 'updated'): Promise<void> => {
558597
const cursor = Subscriptions.findByNameAndRoomType(filter, { projection: subscriptionFields });

apps/meteor/app/livechat/server/lib/contacts/ContactMerger.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,6 @@ export class ContactMerger {
262262
customFieldsPerName.get(customField.type)?.push(customField);
263263
}
264264

265-
const customFieldConflicts: CustomFieldAndValue[] = [];
266-
267265
for (const [key, customFields] of customFieldsPerName) {
268266
const fieldName = key.replace('customFields.', '');
269267

@@ -274,8 +272,6 @@ export class ContactMerger {
274272
dataToSet[key] = first.value;
275273
}
276274
}
277-
278-
customFieldConflicts.push(...customFields);
279275
}
280276

281277
const allConflicts: ILivechatContactConflictingField[] =
@@ -284,7 +280,6 @@ export class ContactMerger {
284280
: [
285281
...newNames.map((name): ILivechatContactConflictingField => ({ field: 'name', value: name })),
286282
...newManagers.map((manager): ILivechatContactConflictingField => ({ field: 'manager', value: manager as string })),
287-
...customFieldConflicts.map(({ type, value }): ILivechatContactConflictingField => ({ field: type, value })),
288283
];
289284

290285
// Phones, Emails and Channels are simply added to the contact's existing list

0 commit comments

Comments
 (0)