mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
9f33858bb2
- Fix Matrix login 403 error by switching to matrix.tchncs.de homeserver - Implement bidirectional message synchronization between Goose and Matrix - Fix room creation bug ensuring friends join correct collaborative session room - Add Matrix login persistence with localStorage and auto-login functionality - Enhanced error handling for Matrix authentication and registration - Add comprehensive Matrix setup documentation and test utilities
35 lines
1.6 KiB
JavaScript
35 lines
1.6 KiB
JavaScript
// Test script to verify Matrix invite functionality
|
|
console.log('🧪 Testing Matrix invite functionality...');
|
|
|
|
// Simulate the fixed invitation flow
|
|
const testInviteFlow = () => {
|
|
console.log('✅ Fixed issues:');
|
|
console.log(' 1. Removed complex power levels from room creation');
|
|
console.log(' 2. Added isSessionActive property to useSessionSharing');
|
|
console.log(' 3. Fixed message format handling in syncMessage');
|
|
console.log(' 4. Added proper error handling with toast notifications');
|
|
console.log(' 5. Changed to use regular Matrix message types');
|
|
console.log(' 6. Added comprehensive debug logging');
|
|
|
|
console.log('\n🔧 Key changes made:');
|
|
console.log(' • MatrixService.createAISession() - Simplified room creation');
|
|
console.log(' • useSessionSharing - Added isSessionActive property');
|
|
console.log(' • ChatInput.handleFriendInvite() - Added async/await and error handling');
|
|
console.log(' • Message handling - Uses standard m.text messages with custom properties');
|
|
|
|
console.log('\n🎯 Next steps to test:');
|
|
console.log(' 1. Start your Goose app');
|
|
console.log(' 2. Register/login to Matrix (tchncs.de homeserver)');
|
|
console.log(' 3. Add a friend by creating a DM');
|
|
console.log(' 4. Try @mentioning the friend and clicking "Invite"');
|
|
console.log(' 5. Check browser console for debug logs');
|
|
|
|
console.log('\n🐛 If invite still fails, check:');
|
|
console.log(' • Browser console for detailed error logs');
|
|
console.log(' • Matrix connection status in debug panel');
|
|
console.log(' • Friend list is populated');
|
|
console.log(' • Network tab for Matrix API calls');
|
|
};
|
|
|
|
testInviteFlow();
|