added message age to message handling and changed invite rejection
This commit is contained in:
@@ -32,7 +32,7 @@ int main(){
|
||||
auto sync_reply = matbot.sync(0); //initial sync
|
||||
|
||||
matbot.set_invite_callback([&](const matrix::bot& bot, const matrix::invite_info& invite)->void{
|
||||
bot.join_room(invite.roomid);
|
||||
bot.accept_invite(invite);
|
||||
});
|
||||
|
||||
while(1){
|
||||
|
||||
Reference in New Issue
Block a user