Feat: roomlist update

This commit is contained in:
Grail Finder
2025-05-12 18:25:52 +03:00
parent f2aee1469b
commit da8131a0a4
6 changed files with 19 additions and 14 deletions

View File

@ -46,6 +46,11 @@ func getRoomByID(roomID string) (*models.Room, error) {
return resp, nil
}
func removeRoom(roomID string) {
key := models.CacheRoomPrefix + roomID
memcache.RemoveKey(key)
}
// context
func getRoomIDFromCtx(ctx context.Context) string {
id, _ := ctx.Value(models.CtxRoomIDKey).(string)