Skip to content

Commit 743d865

Browse files
committed
Use SDK for more capabilities
Enables SNC/SNGC support for facebook/slack/instagram.
1 parent 1d320e9 commit 743d865

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/connector/capabilities.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ func (wa *WhatsAppConnector) GetCapabilities() *bridgev2.NetworkGeneralCapabilit
5050
}
5151

5252
func (wa *WhatsAppConnector) GetBridgeInfoVersion() (info, caps int) {
53-
return 1, 5
53+
// Bump caps version to resend room features after adding room management capabilities
54+
return 1, 6
5455
}
5556

5657
const WAMaxFileSize = 2000 * 1024 * 1024
@@ -177,6 +178,11 @@ var whatsappCaps = &event.RoomFeatures{
177178
TypingNotifications: true,
178179
DisappearingTimer: waDisappearingCap,
179180
DeleteChat: true,
181+
182+
// Room management capabilities
183+
ManageMembers: true,
184+
SetRoomAvatar: true,
185+
SetRoomTitle: true,
180186
}
181187

182188
var whatsappCAGCaps *event.RoomFeatures

0 commit comments

Comments
 (0)