Position and style the channel editor correctly
Fix a bug where some channel updates would be lost Add channel name sanitization before storing in the database
This commit is contained in:
parent
d00f6a490c
commit
b708824d37
6 changed files with 81 additions and 14 deletions
|
@ -3155,6 +3155,7 @@ impl Database {
|
|||
live_kit_room: &str,
|
||||
creator_id: UserId,
|
||||
) -> Result<ChannelId> {
|
||||
let name = name.trim().trim_start_matches('#');
|
||||
self.transaction(move |tx| async move {
|
||||
if let Some(parent) = parent {
|
||||
self.check_user_is_channel_admin(parent, creator_id, &*tx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue