temporary remove invitation expiry
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -13,9 +13,9 @@ func (r *RedisRouter) CreateInvitation(invitation []byte, timeout int, password
 | 
				
			|||||||
	if timeout > serverTimeout {
 | 
						if timeout > serverTimeout {
 | 
				
			||||||
		timeout = serverTimeout
 | 
							timeout = serverTimeout
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	r.Client.Set("mwiv:"+id, invitation, time.Duration(timeout*1000000))
 | 
						r.Client.Set("mwiv:"+id, invitation, 0) //, time.Duration(timeout*1000000))
 | 
				
			||||||
	if len(password) > 0 {
 | 
						if len(password) > 0 {
 | 
				
			||||||
		r.Client.Set("mwpw:"+id, password, time.Duration(timeout*1000000))
 | 
							r.Client.Set("mwpw:"+id, password, 0) //, time.Duration(timeout*1000000))
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return id, time.Now().Add(time.Duration(timeout * 1000000)).UTC()
 | 
						return id, time.Now().Add(time.Duration(timeout * 1000000)).UTC()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -136,7 +136,7 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe
 | 
				
			|||||||
					from_server.Invitation.Payload = []byte("invitation expired")
 | 
										from_server.Invitation.Payload = []byte("invitation expired")
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			} else {
 | 
								} else {
 | 
				
			||||||
				from_server.Invitation.Payload = invitation
 | 
									from_server.Invitation.Payload = invitation // protobuf invitation
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			/* should not happen
 | 
								/* should not happen
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user