v0.8.5 fix pinning
This commit is contained in:
@@ -122,10 +122,9 @@ export const api = {
|
||||
// Link preview
|
||||
getLinkPreview: (url) => req('GET', `/link-preview?url=${encodeURIComponent(url)}`),
|
||||
|
||||
// Message pinning (DMs only, max 5 per conversation)
|
||||
getPinnedMessages: (groupId) => req('GET', `/messages/pinned?groupId=${groupId}`),
|
||||
pinMessage: (messageId) => req('POST', `/messages/${messageId}/pin`),
|
||||
unpinMessage: (messageId) => req('DELETE', `/messages/${messageId}/pin`),
|
||||
// Conversation pinning (pin a group to top of sidebar)
|
||||
pinConversation: (groupId) => req('POST', `/groups/${groupId}/pin`),
|
||||
unpinConversation: (groupId) => req('DELETE', `/groups/${groupId}/pin`),
|
||||
|
||||
// VAPID key management (admin only)
|
||||
generateVapidKeys: () => req('POST', '/push/generate-vapid'),
|
||||
|
||||
Reference in New Issue
Block a user