add get room

This commit is contained in:
Peter Maquiran
2022-01-10 11:11:27 +01:00
parent f46f954edd
commit 28a570cfbf
2 changed files with 27 additions and 4 deletions
+4
View File
@@ -105,7 +105,11 @@ export class HomePage implements OnInit {
email: 'paulo.pinto@gabinetedigital.local',
password: 'tabteste@006'
}).then((message)=>{
// alert('login')
console.log('rocket chat login successfully', message)
this.RocketChatClientService.getRooms().then((rooms)=>{
console.log('rooms', rooms)
})
}).catch((message)=>{
console.log('rocket chat login failed', message)
}).finally(()=>{