1
0
Fork 0
forked from Mirrors/gomuks

Rename GetMostRecentEvent for clarity

This commit is contained in:
FIGBERT 2023-06-13 17:25:54 -07:00
parent 02e1371f37
commit a9815e3b54
No known key found for this signature in database
GPG key ID: 67F1598D607A844B

View file

@ -463,9 +463,9 @@ func (room *Room) GetStateEvent(eventType event.Type, stateKey string) *event.Ev
return evt
}
// GetMostRecentEvent returns the most recent state event for the given
// MostRecentStateEventOfType returns the most recent state event for the given
// type, or nil.
func (room *Room) GetMostRecentEvent(eventType event.Type) *event.Event {
func (room *Room) MostRecentStateEventOfType(eventType event.Type) *event.Event {
room.Load()
room.lock.RLock()
defer room.lock.RUnlock()