Slash command to discard session

This commit is contained in:
Andy Uhnak
2022-08-31 14:11:35 +01:00
parent 365ea304d7
commit 8f2dec9e6b
3 changed files with 8 additions and 0 deletions
@@ -1438,6 +1438,12 @@
cmdUsage = @"Usage: /topic <topic>";
}
}
else if ([string hasPrefix:kMXKSlashCmdDiscardSession])
{
[roomDataSource.mxSession.crypto discardOutboundGroupSessionForRoomWithRoomId:roomDataSource.roomId onComplete:^{
MXLogDebug(@"[MXKRoomVC] Manually discarded outbound group session");
}];
}
else
{
// Retrieve userId