forked from mautrix/signal
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send users a logout notice only when they weren't already logged out.
- Loading branch information
1 parent
b8657cf
commit 850c26e
Showing
3 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package event | ||
|
||
import ( | ||
"reflect" | ||
|
||
"maunium.net/go/mautrix/event" | ||
) | ||
|
||
var ( | ||
StateBridgeConnection = event.Type{Type: "im.vector.mautrix-signalgo.connection", Class: event.AccountDataEventType} | ||
) | ||
|
||
type BridgeConnectionEventContent struct { | ||
LoggedIn bool `json:"logged_in"` | ||
} | ||
|
||
func registerEventTypes() error { | ||
event.TypeMap[StateBridgeConnection] = reflect.TypeOf(BridgeConnectionEventContent{}) | ||
|
||
return nil | ||
} | ||
|
||
var _ = registerEventTypes() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters