Skip to content

Commit

Permalink
feat(talkintegration): add object type to talk room creation
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Larch <[email protected]>
  • Loading branch information
miaulalala committed Feb 27, 2025
1 parent 83b50c1 commit 85bec05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/talkService.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { loadState } from '@nextcloud/initial-state'
import { getCurrentUser } from '@nextcloud/auth'
import logger from '../utils/logger.js'
import { removeMailtoPrefix } from '../utils/attendee.js'
import md5 from 'md5'

/**
* Creates a new public talk room
Expand All @@ -25,6 +26,8 @@ export async function createTalkRoom(eventTitle = null, eventDescription = null,
const response = await HTTPClient.post(generateOcsUrl('apps/spreed/api/' + apiVersion + '/', 2) + 'room', {
roomType: 3,
roomName: eventTitle || t('calendar', 'Talk conversation for event'),
objectType: 'event',
objectId: md5(new Date()),
})

const conversation = response.data.ocs.data
Expand Down

0 comments on commit 85bec05

Please sign in to comment.